![]() |
|
|
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 |
| Pass parameter into script | alfredo | Shell Programming and Scripting | 2 | 04-08-2008 10:40 PM |
| how can i pass parameter with spaces to csh script | umen | Shell Programming and Scripting | 1 | 03-19-2008 12:33 PM |
| How to pass a parameter from one Shell-script to another Shell-script | subodhbansal | Shell Programming and Scripting | 2 | 09-22-2007 06:19 AM |
| PASS parameter to AWK | unisam | UNIX for Dummies Questions & Answers | 2 | 05-14-2004 10:51 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I have a piece of code that I do not want to continuously repeat. I want to call script2 from script1 and pass a parameter. Here is an example:
Script1: Code:
....... nohup ./Script2 PARAMETER ....... Code:
if [ -z $1 ]
# Checks if any params.
then
echo "No parameters passed to function."
return 0
else
PARAM = $1
ftp -vn xxx.xxx.xxx.xxx <<- eof
user pswd
bin
mput *
bye
eof
fi
fi
Last edited by oombera; 02-18-2004 at 04:57 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|