![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to build a command into a string rather than execute the command | littlejon | Shell Programming and Scripting | 1 | 05-29-2008 08:05 PM |
| shell script to execute user command | redtiger | Shell Programming and Scripting | 1 | 04-30-2008 06:53 PM |
| execute a command silently or quietly within a shell | lumix | Shell Programming and Scripting | 4 | 12-15-2007 03:10 PM |
| Plz Help : How to use write command to execute command on some other terminal | Aashish | UNIX for Dummies Questions & Answers | 2 | 03-03-2006 12:25 PM |
| Urgent!! How to write a shell program to execute command to access internet? | firebirdonfire | UNIX for Dummies Questions & Answers | 2 | 04-26-2001 11:16 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi
I have this below script...I want to execute the shell command "rm" in the below script but it is not working. Can anybody why so? I got the below error rm: /users/amvarma is a directory sh: /*-log*: not found ------------------- $u=`whoami`; print "$u\n"; $op_1=$ARGV[0]; # for platform , c3750,c356..etc $op_2=$ARGV[1]; # for crypto $op_3=$ARGV[2]; # for build option production or devonly lc($op_1); lc($op_2); lc($op_3); chomp($options); print "option-1= $op_1\n"; print "option-2= $op_2\n"; print "option-3= $op_3\n"; $s="*-log*"; if ( $op_1 eq "all" ) { print "clearing old buildlogs in /users/$u & images in /tftpboot/$u to avoid failure due to space\n"; system("rm -f /users/$u/$s"); #system("rm -f /tftpboot/$u/*.*"); print "clearing ...done\n" } Thx Amit |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|