![]() |
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 |
| execute a command silently or quietly within a shell | lumix | Shell Programming and Scripting | 4 | 12-15-2007 03:10 PM |
| execute shell command in perlscript | amitrajvarma | Shell Programming and Scripting | 0 | 11-27-2007 02:49 AM |
| Execute internal script as different user | aubtc | Shell Programming and Scripting | 6 | 09-12-2007 12:51 PM |
| Maint user cannot execute ping command | kabeer_n | UNIX for Dummies Questions & Answers | 3 | 10-23-2006 11:01 PM |
| How to execute shell Script? | siva | Shell Programming and Scripting | 3 | 05-14-2002 11:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I don't know why the following shell script doesn't work. Could you please help me out?
#!/usr/bin/ksh test="cal > /tmp/tmp.txt 2>&1" $test I know it will work for the following format: #!/usr/bin/ksh cal > /tmp/tmp.txt 2>&1 However, I need to get the command from the user in my script, so I have to save this command including arguments in a variable. Thanks |
|
||||
|
eval $test
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|