@methyl
HP UX 11i Server
bash
i m logging it through command mode...i would like to run the script ora_toms user account where the script should be able to login to the ftptomsp account
A shell script which can login as another user and perform copy operations.
example
ora_toms@thdb1d01$ ./Sample.sh
The sample.sh
should be able to login as ftptomsp .its a normal account not an ftp account. i just need the logic.script can be provided for any shell
Sample.sh
cd /toms/aps/tmp
login ftptomsp
password AG53Ttsp3iK2
cp file1 /toms/FTP/
The copy operations can be performed only by ftptomsp user.....
i have tried with above script but it is prompting me for password. so, how can i automatically supply a password to that particular user through Shell script.