Jassica has asked for the wisdom of the Perl Monks concerning the following question:
every thing get excuted fine in the front of me by the expect script , however , I get the following error :$theScript ="temp.exp"; $cd = "cd ../../logs/tu/tull"; $cmd = "expect -f '$theScript' '$cd' pwd 'find . -name '*.std*' -o + -name 'ULOG.*' -mtime + 9 -type f -exec rm {} \\;' pwd"; print "$cmd\n"; system($cmd);
see the problem I think it that , the single qotes I put around *.std* and ULOG.* are not being passed , how can I make sure they will appear on the command line , can some one help , thanks much---------------------------- - Entering SHELL session . - ---------------------------- > cd ../../logs/tu/tull > pwd /logs/tuxedo/tuxbull > find . -name *.std* -o -name ULOG.* -mtime +9 -type f -exec rm {} \ +; pwd find: missing conjunction > pwd /logs/tu/tull
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: single quote problem with system() (can't nest ')
by tye (Sage) on Apr 14, 2003 at 19:50 UTC | |
|
Re: single quote problem with system()
by Limbic~Region (Chancellor) on Apr 14, 2003 at 23:16 UTC | |
|
Re: single quote problem with system()
by tall_man (Parson) on Apr 14, 2003 at 19:29 UTC |