473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

backticked command not working

for $tag_name, it is detecting all the views but it is not recognises the view shiva_10454_sas_s&s.But it recognises shiva_10454_sas_s.
It is not recognising the&.please suggest me .

Expand|Select|Wrap|Line Numbers
  1. sub rmView {
  2.     my ($view_owner, @owner_view_tags) = @_;
  3.     for $view_tag (@owner_view_tags) {
  4.         print $view_tag;
  5.         `$ct rmview -f -tag $view_tag`;
  6.  
Jun 18 '07 #1
3 1103
pbmods
5,821 Expert 4TB
Moved to the Perl forum....
Jun 18 '07 #2
KevinADC
4,059 Expert 2GB
??? Your question is incomprehensible.
Jun 18 '07 #3
miller
1,089 Expert 1GB
Try quoting the meta characters in your filename:

Expand|Select|Wrap|Line Numbers
  1. sub rmView {
  2.     my ($view_owner, @owner_view_tags) = @_;
  3.     for $view_tag (@owner_view_tags) {
  4.         my $newtag = quotemeta($view_tag);
  5.         print $view_tag . " => " . $newtag;
  6.         `$ct rmview -f -tag $newtag`;
  7.  
Basically, if you can't run that statement at a command prompt, perl is not going to be able to run it either. Therefore you must escape special characters just like you would in a cmd prompt environment.

- Miller
Jun 18 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ben Floyd | last post by:
It goes like this: Im converting a perl script that executes a command on each result of a directory listing. In perl, all is well. In Python, using approximately the same logic creates a...
8
by: Hugh Macdonald | last post by:
I'm calling a command from within a python script and I need to be able to both catch the output (stdout and stderr) from it and also have the PID (so that I can kill it) I can do one or other...
8
by: Siemel Naran | last post by:
Hi. I'm writing a command shell that reads commands from standard input. At this point I have the command in a std::string. Now I want to execute this command in the shell. From the Borland...
0
by: Kevin McLean | last post by:
I have serveral ASP web pages containing command buttons that perform different functions. This web site has been running for serveral months without any problems. I had taken a vacation and when...
3
by: rh0dium | last post by:
Hi all, Another newbie question. So you can't use signals on threads but you can use select. The reason I want to do this in the first place it I need a timeout. Fundamentally I want to run a...
1
by: Dennis Gaida | last post by:
Hi there, I want to upload some exported reports to a FTP Server, for this I use a command line FTP utility. My Database sits in C:\Documents and Settings\Dennis\My Documents\Database The FTP...
6
by: PAPutzback | last post by:
The process and execute methods want a path to the executable otherwise they kick out a file not found. So how can I execute the following. It works fine from a command window. echo password|...
2
by: Enrique Bustamante | last post by:
Casting arrays that works on watch and command window but not in code. My application is casting arrays in a way it should work. To test if I was doing something invalid, I wrote a test code that...
3
by: Vik Rubenfeld | last post by:
I'm working on integrating the a javascript wysiwyg editor (Xinha) with my blog software (ExpressionEngine, aka EE). EE has extensions now so it's easy to get the Xinha header code into the head...
1
by: mohaakilla51 | last post by:
Alright guys, I am really new to C++, and I wanted to, as my first project, create a command prompt, that pretty much just looks and works like a normal command prompt, except that it has more...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.