The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
How to implement Centralized logging server neel.gurjar SUN Solaris 0 07-07-2007 05:39 PM
Transfer file from local unix server to remote server indira Shell Programming and Scripting 2 05-03-2007 07:35 AM
Transfer file from local unix server to remote server indira HP-UX 2 05-02-2007 06:15 PM
Problem with logging into remote host patil_reddy Shell Programming and Scripting 4 06-13-2006 07:42 AM
Delay when logging in remote alfabetman UNIX for Dummies Questions & Answers 8 10-08-2001 11:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-21-2006
abey abey is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
logging to remote server

Hi,

I want to log-in to a remote server using shell script.

The server requires the following while allowing a connection:

username
password
one - letter authorisation.

How can i implement this in my script?

thanks,

abey
  #2 (permalink)  
Old 02-21-2006
Manish Jha Manish Jha is offline
Registered User
  
 

Join Date: Dec 2005
Location: Boston, USA
Posts: 65
try man page for ftp or rlogin.

for ftp use syntax as
export FTP_HOST=
export FTP_UID=
export FTP_PWD=
export FTP_DIR=

ftp -n << EOF!
open ${FTP_HOST}
user ${FTP_UID} ${FTP_PWD}

commands
quit
EOF!


Regards,
Manish Jha
  #3 (permalink)  
Old 02-21-2006
abey abey is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
Thanks for replying..

The reason i need to log in to the server is to run a script in it. so ftp wont work rite. please let me know if there is any other way.


thanks

abey
  #4 (permalink)  
Old 02-21-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,957
Quote:
Originally Posted by abey
The reason i need to log in to the server is to run a script in it.
abey
to run a script in remote server,

you can check for
rsh,
ssh
  #5 (permalink)  
Old 02-21-2006
abey abey is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 27
Many thanks..

I'm using HP-UX 11, it seems like this doesn't support rsh and ssh. I didn't find a man entry for these commands. Hope there is some other way for running scripts in a remote machine.


thanks
abey
  #6 (permalink)  
Old 03-21-2006
mr-synapse mr-synapse is offline
Registered User
  
 

Join Date: Jul 2005
Location: Mt. Prospect, Illinois
Posts: 32
Running jobs remotely

If you're using HP-UX you should have remsh available. The "remsh" allows you to access remote machines, assuming you have authority to do so, and
execute programs, commands et al. You should examine the man page for remsh, you should find it useful.

Good luck!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0