SSH instead of rsh problem Help ...
From: Paul Gurney (paul.gurney@derwent.co.uk)Date: 02/26/02
- Previous message: Simon Tatham: "Re: Base-64 and key format in general"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: paul.gurney@derwent.co.uk (Paul Gurney) Date: 26 Feb 2002 02:13:44 -0800
We have a problem running a script using ssh which when run using rsh works ok.
Could some one please help.
The command is:
ssh server """. .profile >/dev/null 2>&1; test_remote.pl -mode=ddf
-data=paul"" 2>&1;echo ":\$?" "
Which should create a directory on the remote server, it does not but
if you use the same command with rsh it does.
rsh server """. .profile >/dev/null 2>&1; test_remote.pl -mode=ddf
-data=paul"" 2>&1;echo ":\$?" "
The perl script called is below.
#!/usr/bin/env perl -w
use strict;
use Getopt::Long;
use File::Copy;
my $mode = "";
my $data = "";
# check the command line options
&GetOptions( "mode=s" => \$mode, "data=s" => \$data);
die qq(usage: $0 -mode=<ddf|dwda> -data=<filename>\n)
unless ($mode eq "dwda" || $mode eq "ddf");
mkdir $data, 700 unless -d $data;
Any help would be most appreciated.
Many Thanks in advance
Paul
- Next message: hyatts@hursley.ibm.com: "setting sshd default user $PATH"
- Previous message: Simon Tatham: "Re: Base-64 and key format in general"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|