10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
i have a problem no a dream :)
i have a list and i want to do :
cat lista_olo
for file in `cat list`
do
sftp myuser@myip << EOF
ls -l mydir/$file/
EOF
but there is an error . Syntax error at line 11 : `<' is not matched
How can i do ?
Regards. (1 Reply)
Discussion started by: Francesco_IT
1 Replies
2. Shell Programming and Scripting
I have an sftp script which is uploading file into a directory which is not specified wth the cd command . For example:
sftp sftpserver
>>lcd /abc
>>cd /tmp/bef
>> put /abc/abc.txt /tmp/bef/abc.txt
Uploading file from /abc/abc.txt to /xyz/wxy/tmp/bef/abc.txt
>>quit
The file is getting... (2 Replies)
Discussion started by: NP1
2 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone,
Something rather interesting just happened to me. I uploaded a file to a server through sftp. I closed the connection and then logged on to the server via ssh. So far so good.
When I typed ls -l in the remote server to retrieve a directory listing, the file that was previously... (2 Replies)
Discussion started by: gacanepa
2 Replies
4. Shell Programming and Scripting
Hi,
While running my ksh file, I require the logs to be written to another file. For this I use the below code:
write_log()
{
echo `date +"%d %h, %Y %H:%M:%S"` " : " $* >> ${LOG_FILE}
}
But inside my ksh file, am connecting to sftp server and executing some commands.
So while i see... (8 Replies)
Discussion started by: confused_info
8 Replies
5. UNIX for Dummies Questions & Answers
i was able to script:
ftp -n hosname << DONE
user username pwd
put
quite
close
DONE
can i do same as sftp ? i tried, but it keeps asking for pwd. when i typed pwd, and it worked fine. (11 Replies)
Discussion started by: lawsongeek
11 Replies
6. Shell Programming and Scripting
I am trying to send a file from my 9000 box to a vendor using sftp and I am getting this error: Couldn't close file: Failure
Here are the results of my automated script:
Connected to yyy.com.
sftp> pwd
Remote working directory: /
sftp> cd xxxxx/yyyyy_TEST/TEST
sftp> put FILE FILETEST... (1 Reply)
Discussion started by: nickg
1 Replies
7. AIX
Generally, most people, I guess, go from 5.3 ML4 Directly to TL 7. So they may never run into this issue.
For the rest of us, here is the resolution of my problem in going from ML6 to TL7.
Apparently with the change from ML to TL IBM added a "BuildDate Verification" routine into... (1 Reply)
Discussion started by: mrmurdock
1 Replies
8. Shell Programming and Scripting
Hi,
Here is my problem::confused:
Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server".
Sometimes While doing SFTP, the files get trucated due to it's size.
Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies
9. Shell Programming and Scripting
Hi I need to perform the following task using shell script.
establishing a sftp connection to a server.
then get the latest file from there to our own server.
But i am not finding ny suitable command in sftp console to get the latest file.
can anyone help me in this reagrd.
if ny other... (1 Reply)
Discussion started by: UBD
1 Replies
10. Cybersecurity
Hi,
I'm in the process of writting some scripts using sftp2 on a HP UX 11.11 machine.
I've found that when I do an 'ls' command , even when in batch mode, it asks for me to 'press any key to continue or q to quit' after a screenful of data. Of course in batch mode this cause the script to hang.... (0 Replies)
Discussion started by: sudojo
0 Replies