10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not
and again i have to reverse sftp the files from unix to windows server.....
Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
2. Shell Programming and Scripting
I connected to a remote FTP server using sftp command.
Need to check if any files are present inside a folder in server directory and then remove if present.
The code should look like this
How can this condition be written.
Thanks in advance, (2 Replies)
Discussion started by: confused_info
3. Shell Programming and Scripting
My doubt may be basic one but I need to get it clarified..
When i use "if" condition that checks for many AND, OR logical conditions
if ]; then
Even the if condition fails it returns as zero.. Any clue..
But if i add else condition like
if ]; ... (2 Replies)
Discussion started by: Priya Amaresh
4. Shell Programming and Scripting
I had the below sftp script working perfectly but the problem is I am not able to send the echo statements .
echo "Starting to sftp..."
sftp admin@myip << END_SCRIPT
echo "Sftp successfully."
echo... (11 Replies)
Discussion started by: scriptscript
5. Red Hat
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
6. Shell Programming and Scripting
I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command
Here are my simple script
After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
7. Shell Programming and Scripting
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
sftp -b sftpCommand.txt firstname.lastname@example.org
The above... (1 Reply)
Discussion started by: noobrobot
8. Shell Programming and Scripting
I am using the below if command to comparing two variables but is condition is true but going in else part.
if ; then
echo "Snaps updates done"
echo "Seemes DS & JDP is still running KIndly... (4 Replies)
Discussion started by: ajaincv
Executed the following if conditions .. and got different results .
only (( )) gave correct o/p with all scenarios .
Can anybody please let me know what is the difference between and ] and ((condition)) when used with if condition.
And why each condition gave different result.
1.... (2 Replies)
Discussion started by: soumyabubun
While I am trying SFTP my machine to another unix machine ,
it was working fine till 10 min back.
But now i am getting the below error
"Request for subsystem 'sftp' failed on channel 0"
Could you please someone help me to solve or analyise the root cause...
Mahiban (0 Replies)
Discussion started by: mahiban