![]() |
|
|
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 |
| Passing the nawk variables to the shell | prav076 | Shell Programming and Scripting | 1 | 04-06-2009 04:23 AM |
| Passing Shell Variables in ISQL | dikki | Shell Programming and Scripting | 0 | 03-12-2009 01:15 AM |
| passing two variables into a shell script? | Bashar | Shell Programming and Scripting | 2 | 05-15-2007 11:00 AM |
| Passing variables to sql from batch shell in linux | rama71 | Linux | 2 | 06-28-2005 04:38 PM |
| Passing shell variables to awk program.. | Vishnu | Shell Programming and Scripting | 1 | 07-17-2004 11:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I noticed my script is not passing the value of variable alert to the rsh command. I need some assistance, please. This is a solaris environement. Thanks! ![]() Code:
#!/bin/sh echo -n "Alert number:" read alert rsh rhost_name 'egrep $alert /opt/var/log/*.logs' Last edited by lopus; 09-28-2009 at 08:08 PM.. |
|
||||
|
Quote:
You need to replace the single quotes with double ones, ie. ' => ". Otherwise the alert variable won't get expanded properly. pen Last edited by pen; 09-28-2009 at 08:28 PM.. Reason: minor clarification |
![]() |
| Bookmarks |
| Tags |
| rsh, shell script unix run, solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|