I have a Perl Script
#!/usr/local/bin/perl
$server_name = "info-xyz-05";
my $value = `/usr/bin/ssh -f $server_name /users/salesadm/MGFINFA/bridgerftpup.sh`;
The above calls a shell script on another server called bridgerftpup.sh. This script has several commands and needs to call... (2 Replies)
Hey guys
I am trying to send a perl -e command to a number of systems using SSH. The command should retrieve some information for me. The problem is, the remote shell tries to interpolate my variables and doesn't get it should take the command literally and just execute it.
Below the code.... (2 Replies)
Hi Experts,
I use perl telnet and ssh for normal tasks and health checks.
everything works fine but i would like to run scripts silently and print only data as i wish to.
by silent i mean.no banners /no prompts/ nothing.
I will format data before i print it on screen.
just formatted... (3 Replies)
Is it possible to ssh to a server in perl and execute multiple commands without doing them all at once?
I know I can potentially do something like
system( 'ssh user@server "cd directory; grep blah *; curl someurl.com"');
However, I'd like the functionality where I don't have to keep SSHing... (3 Replies)
Can anyone break down the different methods of using SSH in perl? I'm currently using Net::SSH::Expect, which allows me to login to a machine and execute multiple commands without having to ssh again. This feature of holding the session works well for me, but it's slow. If I set timeouts to 4... (3 Replies)
I'm new to perl. I have a input file with pipe delimited lines which have server_name, and file names as fields. The file names have wild card (*) in the input feed file.
The actual file names will be suffixed with timestamps.
Ex: Actual files in remote servers
server_1/abc_20110801.txt... (3 Replies)
Hi guys,
I have an Active Perl version 5.12.2.1203 installed on my PC, I have a script that will perform some commands to the remote server by using SSH connection from local PC to remote server. I've found out that the Active Perl installed on my PC does not support such module, it only allows... (1 Reply)
I'm trying to create a perl script that will do 1 SSH session, but be able to write multiple commands to the session and receive multiple outputs. I know there are modules out there like Net:SSH::Perl, but I'm not allowed to use it. I was thinking of doing something like an open3 on an ssh... (4 Replies)
Hi I have a perl command that doesn't seem to be working correctly. It appears to be fine but even when i try and run it manually same thing. Can someone take a look at this and tell me what they think the problem could be?
Here is the perl Line:
system ("echo 'ssh -t -t $user\@$_ \"cd... (3 Replies)
I am having a problem figuring out how to turn stdout on in the middle of my ssh session. If I turn it on or off in the initial session it works, but if I try to turn it on in the middle, I can't seem to find the correct statement.
my $ssh = Net::SSH::Expect->new (
host =>... (1 Reply)
Discussion started by: numele
1 Replies
LEARN ABOUT PLAN9
cpu
CPU(1) General Commands Manual CPU(1)NAME
cpu - connection to cpu server
SYNOPSIS
cpu [ -h server ] [ -c cmd args ... ]
DESCRIPTION
Cpu starts an rc(1) running on the server machine, or the machine named in the $cpu environment variable if there is no -h option. Rc's
standard input, output, and error files will be /dev/cons in the name space where the cpu command was invoked. Normally, cpu is run in an
81/2(1) window on a terminal, so rc output goes to that window, and input comes from the keyboard when that window is current. Rc's cur-
rent directory is the working directory of the cpu command itself.
The name space for the new rc is an analogue of the name space where the cpu command was invoked: it is the same except for architecture-
dependent bindings such as /bin and the use of fast paths to file servers, if available.
If a -c argument is present, the remainder of the command line is executed by rc on the server, and then cpu exits.
The name space is built by running /usr/$user/lib/profile with the root of the invoking name space bound to /mnt/term. The service envi-
ronment variable is set to cpu; the cputype and objtype environment variables reflect the server's architecture.
FILES
The name space of the terminal side of the cpu command is mounted on the CPU side on directory /mnt/term.
SOURCE
/sys/src/cmd/cpu.c
SEE ALSO rc(1), 81/2(1)BUGS
Binds and mounts done after the terminal lib/profile is run are not reflected in the new name space.
CPU(1)