how to execute a program present on another server using SFTP in perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to execute a program present on another server using SFTP in perl
# 1  
Old 07-18-2012
Bug how to execute a program present on another server using SFTP in perl

Hi,
I want to execute a program which is present on another server.
i want to use SFTP in perl, is it possible? how ?
thanks.
# 2  
Old 07-18-2012
FTP = file transfer protocol.
You cannot execute anything via FTP.

SFTP = FTP via SSH tunnel.

So, if you are logging in via SFTP, you establish ssh connection. You don't need the ftp at all. The server is listening on the ssh port (standard 22) for incoming connections. Just ssh in, and you can execute scripts as your permissions allow.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

No tty present and no askpass program specified

I am trying to rsync files from NodeA to NodeB. Using the below command. /usr/bin/rsync -v -a -e "ssh" --rsync-path="sudo -u msd rsync" /home/ansible/templates/app/Sprint6/webapps eric@NodeB:/opt/msdp/ca/iam_cac I can only ssh into NodeB as eric user but I want files placed as msd user.... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies

2. Shell Programming and Scripting

How to execute command present config file?

I have written the following shell script #!/bin/bash file="/home/CSV/data.csv" badfile="/home/CSV/bad/" while IFS= read -r line do num_fields=`echo "$line" | awk -F'|' '{print NF}'` field1=`echo "$line" | awk -F'|' '{print $1}'` echo $num_fields echo $field1 done <"$file" the code is... (3 Replies)
Discussion started by: Tomar
3 Replies

3. Solaris

[Solved] No tty present and no askpass program specified!

Hi Guys, I use a script sdcmdeploy.ksh to deploy java application to respective dev/test environment. This script is being executed on SunOS. These apps are weblogic apps & the script internally calls weblogic deploy script to deploy application to weblogic cluster. But at this point it... (2 Replies)
Discussion started by: raj100
2 Replies

4. Shell Programming and Scripting

i want to execute shell script on remote server with in sftp session

Hi, I want to execute shell script with in sftp session for remote server. like i have a shell script test.sh that is on local server.i want to execute that script on remote server sftp user@192.168.56.10 sftp> test.sh ---execute for remote server not for local server. sftp... (3 Replies)
Discussion started by: SAUD PASHA
3 Replies

5. Solaris

how to execute shell script present in unix machine remotely from windows

how to execute shell script present in unix machine remotely from windows? I having a shell script in my unix machine, need to execute the script remotely from my windows machine using Visual Basic or VBA macros. Thanks In Advance. --Suresh (1 Reply)
Discussion started by: sureshmani
1 Replies

6. Shell Programming and Scripting

calling a shell script present on another server using perl script.

Hi, I am working on a sever A. I want to write a perl script to execute a shell script persent on the server B. please help me in this. thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies

7. Shell Programming and Scripting

Sftp- file not present in the remote location

I'm able to connect to the remote server (server_name). But when i'm transferring the files, its getting transferred. But the file is not there in the remote location. I tried with a zero byte and 5 byte file sftp6 -P <port-no> --password=file:///<file having the pwd>... (1 Reply)
Discussion started by: help_scr_seeker
1 Replies

8. UNIX for Dummies Questions & Answers

Script to open program and send/execute command in program

Hi, i want to write a script that executes a program (exec?) . this program then requires a filename as input. how do i give it this input in the script so the program will be complete run and close by the script. e.g. exec prog.exe program then asks for filename "enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies

9. Shell Programming and Scripting

How to execute java program from perl

hello all how can i run the java command that can eccept N numbers of args for example : java -cp .;foo.jar myApp 1 "ww" or java -cp .;foo.jar myApp 1 2 3 "ww" or java -cp .;foo.jar myApp "args1" "args2" "args3" Thanks (1 Reply)
Discussion started by: umen
1 Replies
Login or Register to Ask a Question