05-10-2009
Yes you can run a script on sever2 instead of on server1, ftp would allow you to delete the files from server1 once copied onto server2 whereas scping would require a separate ssh session to delete the files from server1.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear friends,
i need to connect sftp server from my home directory using script .
Please can anyone help me on this. (1 Reply)
Discussion started by: kittusri9
1 Replies
2. Shell Programming and Scripting
Hello everyone,
Have a question which I'm not entirely sure about, but will ask anyway.
We have three servers (A/B/C), 'A' being the local host, 'B' being a SFTP server on the DMZ, and 'C' being the intended remote host. The task is to transfer file/s from server 'A' to server 'C' via server... (0 Replies)
Discussion started by: Cameron
0 Replies
3. UNIX for Dummies Questions & Answers
I have four servers that for all intents and purposes are the same (I have the same profile on all four), North, South, Brooklyn & Queens.
I have a script that scp's a file from Queens to brooklyn, and it runs just fine. I tried to replicate the script on South, to transfer a file to North, and... (1 Reply)
Discussion started by: DeCoTwc
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to calculate time taken by a 100kb file for sftp between two servers. I am new to unix can some body please tell me how do this.
Thanks in advance...
Vivek (2 Replies)
Discussion started by: koulvivek
2 Replies
5. Red Hat
Hello,
I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration.
#pwd... (8 Replies)
Discussion started by: bobby320
8 Replies
6. Shell Programming and Scripting
I am writing a shell script to copy sybase related .dump files from one to another aix server and visa versa.
Please help me do the following
The script does the following:
- check directory exists
- copy dump files
- copy is done for multiple database
- checks databases, if one... (11 Replies)
Discussion started by: nmm_dba
11 Replies
7. Shell Programming and Scripting
Hi,
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
7 Replies
8. Shell Programming and Scripting
Hi,
I have to check the files in another server using sftp to do that, below is the code i am going with
#!/bin/bash
export SRC_FOLDER=$1
export ARC_FOLDER=$2
HOST=as07u3456
USER=relfag
sftp ${USER}@${HOST} <<EOF
cd $SRC_FOLDER/DSCOR
ls
bye
EOF
echo "done"
whatever the files i... (8 Replies)
Discussion started by: ursrami
8 Replies
9. UNIX for Advanced & Expert Users
Hi
Could you please help me out how to configure between two server I don't have admin idea to setup the Sftp server
the requirements is we want to send a file to vendor so we need sftp configuration so that can we can send file through sftp
Please let me know what should I ask to vendor... (1 Reply)
Discussion started by: jagu
1 Replies
10. UNIX for Advanced & Expert Users
Greetings Experts,
I am working for a bank client and have a question on connect-direct and SFTP.
We are using Linux RedHat servers. We use connect-direct to transfer (NDM) files from one server to another server. At times, we manually transfer the files using SFTP from one server to another... (2 Replies)
Discussion started by: chill3chee
2 Replies