want to login remotly to server and start exe


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting want to login remotly to server and start exe
# 1  
Old 03-18-2006
want to login remotly to server and start exe

Hello Unix Guru

I need help to write the shell script

My requirement is

i have to start exe in unix hosts ( 20 unix server) through shell script .

currently i have to login to all host
rlogin -l testadmin servername
/users/testadmin/bolt/
source boltsrc
./executor start

can you tell me how to write shell script
thanks
# 2  
Old 03-18-2006
You've almost written the script there! Try this:
Code:
cd /users/testadmin/bolt/
source boltsrc
./executor start

Put the above in a shell script that resides on your central server. Then run the following commands on that central server:
Code:
while read servername; do
rcp /path/to/script username@servername:/tmp/script
remsh -l username servername "/tmp/script"
done < server_list_file

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to run putty.exe file in server?

Hi, I want to run putty.exe in Solaris server.My main aim is to invoke the putty.exe in Solaris server from a web application(.jsp) deployed in the server so that putty terminal should open. Thanks in advance (11 Replies)
Discussion started by: chaithanyaa
11 Replies

2. Shell Programming and Scripting

Remotly running the script

Hi Experts, I have one script which I have to run on multiple servers. One way is to keep that script on every unix box and run it. I am looking for some best practise to do it. Like remotly login to the server using credentials and execute the script. below is the snippet from the... (7 Replies)
Discussion started by: sharsour
7 Replies

3. Ubuntu

Customizing XUbuntu 12.04 Live CD - Start my Exe Automatically

Hi all http://ubuntuforums.org/images/smilies/smiley-faces-80.gif, I am customizing the LIVE CD of Xubuntu 12.04.. I removed the ubiquity package and changed the live username and hostname using uck-gui.. I am almost done with the customization. Now after the splash screen , the text in motd... (1 Reply)
Discussion started by: selvarajvss
1 Replies

4. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

5. Shell Programming and Scripting

Executing .exe file at WS Server from Unix

Hi We use Unix for our application, I need to execute a .exe file at WS server, I am not sure if its possible with shell scripting. PLease let me know how it can be. Let me know if I am not clear. Thanks in advance. (4 Replies)
Discussion started by: Dharv
4 Replies

6. Cybersecurity

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both, when... (1 Reply)
Discussion started by: WhotheWhat
1 Replies

7. Web Development

APACHE: Tie in Web Page login with server login

Hello, I have created a web page on a server using apache and added .htaccess and .htpasswd in the folder for authentification. I was wondering if there was anyway to tie-in the login for this page with the login used to logon to the server. i.e. the same login info. is used for both,... (2 Replies)
Discussion started by: WhotheWhat
2 Replies

8. Programming

how to start a c++ exe on unix from windows.

I'm very new to c++ & unix programming. I have a c++ exe that runs on the unix box, but I am trying to write a c++ windows app that executes the program on unix. I have tried execv(), but it doesn't seem to work or I'm doing something wrong. Would really like to see examples if at all possible. ... (5 Replies)
Discussion started by: ch5082
5 Replies

9. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

10. UNIX for Dummies Questions & Answers

Get telnetd to start a process other than login

I want to be able to get telnetd to start a program of my choice or one that I have written . . . or . . . write a daemon of my own to listen on a port other than 23 and when a connection arrives it should create a controlling tty/pty and then launch my program on the client side of the pty. A... (2 Replies)
Discussion started by: pdenaro
2 Replies
Login or Register to Ask a Question