![]() |
|
|
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 |
| automating file search and replace text | ommatidia | Shell Programming and Scripting | 3 | 02-28-2008 04:40 PM |
| Retrieving PID from a file | appleforme1415 | UNIX for Dummies Questions & Answers | 5 | 10-18-2007 02:44 AM |
| retrieving pid | p_aishwarya | UNIX for Advanced & Expert Users | 3 | 09-16-2007 05:59 PM |
| Using loop reading a file,retrieving data from data base. | Sonu4lov | Shell Programming and Scripting | 1 | 01-19-2007 03:38 AM |
| retrieving a deleted file | jyotipg | UNIX for Advanced & Expert Users | 2 | 01-04-2002 08:49 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Automating Rlogin and File Retrieving
Hi,
I'm a begginer in Unix Scripting and i'm trying to write a script that performs this functions.. 1. Rlogin to a system 2. Copy a Perl script inTO the system 3. Run the Perl Script 4. Retrieve the result(file) of the Perl Script 5. Copy the result file to a single system 6. Logout of the system This process is repeated to 10 systems. This script is moreless a data extraction script. Your help is greatly appreciated.. Thank you |
|
||||
|
Thanks a lot!!
The file copying command works fine but when the script is executed an error occurs. It says "Could not open file". But when I rlogin to the remote system and execute the script manually there is no error and the script runs smoothly. The script is supposed to open certain files w/in a directory in the remote system. Please advise, thanks.. Last edited by vicesjr; 04-27-2005 at 04:48 AM.. |
|
|||||
|
slight change ... the remote script transfer maybe getting the execute bit unset based on the umask value for the user at the remote server ...
Code:
#!/bin/sh rcp -p <path of perl script> <remote system>:<dest path of script> rsh <remote system> -n -l <username on dest system> <remote path of script> rcp -p <remote system>:<remote path of output of script> <local path of output> |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|