|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I need to run some set of scripts once in a month. For eg i need to
run three scripts 10th of every month. I grouped them into one Master script file which runs in Kornshell which i can set in cron so that this master script file will be executed on 10th of every month. But the subscripts which i have called in the master scripts required username and password to be supplied. How can I supply username and password from the Master script itself? so that the subscripts automatically take the username and password and complete the task successfully. for more clarification below is example: masterfile.ksh #!/usr/bin/ksh #To run a sub script cd /tmp ../subscriptfile1.sh Need to give the username first and enter... then requires to supply password. How can i supply the info here? ../subscriptfile2.sh Need to give the username first and enter... then requires to supply password. How can i supply the info here? ../subscriptfile3.sh Need to give the username first and enter... then requires to supply password. How can i supply the info here? Thanks in advance for you time and and advise. Guna... |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
At 2007-05-22 04:09PM, "Guna" wrote:
> How can I supply username and password from the Master script itself? > so that the subscripts automatically take the username and password > and complete the task successfully. Investigate Expect: http://expect.nist.gov/ "Expect is a tool for automating interactive applications ..." -- Glenn Jackman "You can only be young once. But you can always be immature." -- Dave Barry |
|
![]() |
| Outils de la discussion | |
|
|