![]() |
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 |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing runtime arguments to a shell script... | santy | Shell Programming and Scripting | 10 | 01-09-2009 10:47 PM |
| passing arguments from shell to java | kenpeter | UNIX for Dummies Questions & Answers | 3 | 05-19-2008 06:54 PM |
| Passing blank arguments to a script | rm-r | UNIX for Advanced & Expert Users | 7 | 01-08-2008 08:56 PM |
| Problem with scheduling a shell script on cygwin using cron | shash | UNIX for Dummies Questions & Answers | 4 | 08-09-2007 06:08 PM |
| Passing arguments to a script | Kevin Pryke | Shell Programming and Scripting | 3 | 06-14-2002 09:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Passing arguments to a shell script from file while scheduling in cron
Hi,
I have a shell script Scp_1.sh for which I have to pass 2 arguments to run. I have another script Scp_2.sh which in turns calls script Scp_1.sh inside. How do I make Scp_1.sh script to read arguments automatically from a file, while running Scp_2.sh? -- Weblogic Support |
|
||||
|
Thanks for the reply.
So from what I understand if Scp_1.sh expects two arguments line arg1=env (for eg: UAT) and arg2=path (for eg: /var/tmp) so the content of file from which the script reads should be of bfelow ormat cat filename.txt UAT /var/tmp (UAT then space & PATH) Please correct me on this. -- Weblogic Support |
|
||||
|
Quote:
cat filename.txt UAT:/tmp |
|
||||
|
Thanks a lot !!
-- Weblogic Support |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|