![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passing a variable from a child script back to the parent | Andy82 | Shell Programming and Scripting | 3 | 05-26-2008 09:52 PM |
| passing asterisk to a script as variable | GKnight | Shell Programming and Scripting | 9 | 04-02-2008 10:32 AM |
| Passing a variable into an awk script | Khoomfire | UNIX for Advanced & Expert Users | 5 | 09-05-2006 08:44 AM |
| passing ip address as a variable to script for ftp | Gerry405 | UNIX for Dummies Questions & Answers | 2 | 09-01-2005 05:26 AM |
| passing awk variable to the shell script | bcheaib | Shell Programming and Scripting | 3 | 07-21-2004 10:00 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
passing variable to my script
Hello everybody:
Im trying to run the following script on my sol9 machine: Code:
line=''
((lineCount= 0))
export lineCount
more /tmp/MSISDNs | wc -l > /tmp/tmp
cat /tmp/tmp | read lineCount
export lineCount;
while (( lineCount > 0 ))
do
line= tail -$lineCount /tmp/MSISDNs | head -1
export line
/opt/msp/opt/SAmsp/bin/prosubm_add -ms $line -hs off -ug postpaid -saa off -v
((lineCount=lineCount-1))
done
#
Code:
Parameter value for parameter with name ( -ms ) is missing. Command execution stopped with error(s) Thanks in advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|