![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script to Automate | sam786 | UNIX for Advanced & Expert Users | 1 | 11-06-2008 12:07 PM |
| Shell Script to Automate Package Installation | muhilan.r | UNIX for Advanced & Expert Users | 2 | 11-04-2008 09:33 PM |
| Script(s) to Automate Tasks | droppedonjapan | Shell Programming and Scripting | 2 | 05-21-2008 11:32 AM |
| here document to automate perl script that call script | hogger84 | Shell Programming and Scripting | 3 | 10-22-2007 11:15 AM |
| automate the input in a script | erwinspeybroeck | UNIX for Dummies Questions & Answers | 11 | 01-31-2002 10:54 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Automate shell script
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect "Please enter Sun Online Account User: " send "username\r" expect "Please enter Sun Online Account Password: " send "password\r" second script #!/bin/sh #cd /var/tmp /home/server/steve/pca --askauth -idx /opt/app/bin/expect <<EOF expect { "Please enter Sun Online Account User: " send "username\r" expect "Please enter Sun Online Account Password: " send "password\r" Can Anyone help??? Many Thanks -sam |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|