Automate ineractive applications


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automate ineractive applications
# 1  
Old 12-14-2009
Automate ineractive applications

Hi Friends,
I have a ksh script which is created by a user, 'ustst'. I need to su to another user, 'ghprod' and execute a script created by 'ghprod'.

su - ghprod
The above cmd asks for ghprod's password. I need to automate such that it takes the password form a hidden file without prompting the user.

I am aware of Expect tool but it is not installed in my server. Can anybody suggest a way to automate this without using expect.

Thanks in advance,
Sudha.
# 2  
Old 12-14-2009
add entry in $HOME/.ssh/known_hosts file
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Automate [ls]ftp

Heyas Seen some of the ftp posts here and knowing i'll be writing a script using ftp soon, so i thought i'd write a script to automate, or at least simplify some basic tasks with it. I'm currently stuck at handling active/passiv modes. Neither lftp nor sftp seem to support them by arguments,... (3 Replies)
Discussion started by: sea
3 Replies

2. Shell Programming and Scripting

Sftp automate

hi, I am trying to automate a file download process using sftp. There is some logic to download files. 1) I need to login to destination server and then go to folder. 2) find list of files and count 3) using list of files I need to eliminate three selective files and download remaining... (1 Reply)
Discussion started by: getmilo
1 Replies

3. Shell Programming and Scripting

Need Help with commands to automate.

HI, In some test cases, I used tools like "dd" and "shed" to manually read a block from the disk, modify it using a hex editor and write it back using "dd". I need help with some linux commands I can use to read the block and change the data to induce the corruption....as I want to automate my... (3 Replies)
Discussion started by: prinsh
3 Replies

4. UNIX for Dummies Questions & Answers

To automate a process

CAN ANYONE HELP TO SOLVE i wann write a script to automate a process .i.e, to search files in the FTP server and and if files are there and we hav to bring that files to our system. After copying the files in our system we have to upload the data in the tables. I have scripts to load the... (2 Replies)
Discussion started by: nani1984
2 Replies

5. UNIX for Dummies Questions & Answers

Can you automate CVS?

Currently we have a load of files which we manually edit and then commit back into CVS ready for whoever else to edit. I have now made a script which auto-populates these files, however the powers that be still want them accessible via CVS. Is there a way I can automatically commit these files... (7 Replies)
Discussion started by: JayC89
7 Replies

6. Shell Programming and Scripting

Script to ftp in non-ineractive mode

Hi, I am relatively new to Unix. What I am trying to create now is a script to ftp some file(s) from Unix server to Windows ( not mine) machine. It should be able to run not in interactive mode, eventually I will schedule it to run at certain time intervals. So far I have created the... (6 Replies)
Discussion started by: mshv123
6 Replies

7. Shell Programming and Scripting

automate Telnet ?

Hi, I have to run a script shell on a unix server from my windows PC. For that, I open a cmd windows and use Telnet to connect to the unix and run the script (by the .profile of a special user). Is it possible to automate Telnet in order to not enter the user and the password ? Anyway, has... (4 Replies)
Discussion started by: tbeghain
4 Replies

8. Shell Programming and Scripting

Automate config changes

Hi All, I have stooopidly agreed to automate our release process (which though easy is a pain). The config file has a simple structure, below, each section can have upto 20 parms. The release doc will have the section name and parm to be changed. What I want is to read the list of changes... (3 Replies)
Discussion started by: nhatch
3 Replies

9. UNIX for Advanced & Expert Users

how to automate sudo

I have to provide a password everytime I invoke a script with Sudo privileges. How can I avoid it?? Is it possible to automate Sudo so that I dont have to pass a password everytime?? (1 Reply)
Discussion started by: jyotipg
1 Replies

10. Shell Programming and Scripting

How to automate responses

I would have searched for this but I couldn't really think of what to use for the search text... I've got a situation where I need to automate responses to an executable when running it from a script so that it can be made into a job the operators don't have to interact with. When I run it... (2 Replies)
Discussion started by: djp
2 Replies
Login or Register to Ask a Question