8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I was trying to execute below sftp command.
echo "cd /${CUST_ID}/inbound/${SAFET_ID}" > $BATCHFILE
echo "put ${SOURCE_FILE} ${FILE_NAME}" >> $BATCHFILE
echo "exit" >> $BATCHFILE
cmd="sftp -o port=2022 -b $BATCHFILE user@$SERVER"
$cmd >> $LOGFILE 2>&1
if 2>>$LOGFILE
then... (3 Replies)
Discussion started by: Girish19
3 Replies
2. Shell Programming and Scripting
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies
3. UNIX for Advanced & Expert Users
I want directly to move from WMToggle to bash, which command to type?
Now I need to type 3 times, :q! etc. any help? its very annoying to time something 3 times continuously :( (1 Reply)
Discussion started by: c_lady
1 Replies
4. Shell Programming and Scripting
I am reading a file using While loop
while <FILE>
{
$_ = <FILE>;
process data...
}
I would like to quit reading the file once I encounter a String pattern. How do i do it.
is it
if (/SUMMARY/)
{
last;
}
I am having problems with uninitialized value in pattern... (1 Reply)
Discussion started by: subhap
1 Replies
5. Programming
By using exit() and _exit() we can terminate a program. What is the:confused: difference between these two ??? (4 Replies)
Discussion started by: lipun4u
4 Replies
6. Shell Programming and Scripting
I know that the exit codes in scripting "$*" will returns all the parameters/arguments passwd to the script.
But I also know that "$@" will also returns the same. What is the difference between those two ? (1 Reply)
Discussion started by: praveen_b744
1 Replies
7. Shell Programming and Scripting
HI All,
I have created a unix script which takes 2 parameters and using sftp tranfers files to remote location
following is the script
#!/bin/ksh
#
#
# Parameter 1 is the complete path of the destination server
# Parameter 2 is the complete path of the file which is to be FTP... (1 Reply)
Discussion started by: vikramsnest
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am doing a sftp from solaris 2.8 box to windows XP box. I am able to transfer the files successfully from the windows box to Solaris box (that is only I need).
Problem arises when I try to exit/quit from the sftp session. sftp gets hung and I have to kill the telnet session by closing... (1 Reply)
Discussion started by: max29583
1 Replies