05-26-2005
My apology, I forgot part of the script in my editor. Please refer to my previous message for the script again.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I'm hoping I could get some help on the following. I'm writing a script which will in turn create an ftp script then excecute it. eg
echo "user $user $pass" > $script
echo "cd $remote_dir" >> $script
echo "bi" >> $script
echo "mput $file" >> $script
echo "bye" >> $script
ftp -n -i $ip... (1 Reply)
Discussion started by: Bab00shka
1 Replies
2. UNIX for Dummies Questions & Answers
I have written a UNIX script that will automatically ftp a file to a server. The problem is when I missed enter information w/in the .txt file that contains the userid/password and what file to transfer, I had no way of capturing the failuer of the file transfer. I verified w/in the script that the... (1 Reply)
Discussion started by: dhawkjrscripter
1 Replies
3. Shell Programming and Scripting
Hi
Please let me know is there any way through which I can find out errors & do debugging in FTP scripts.
Thanks
Sourabh
TCS (1 Reply)
Discussion started by: sourabhshakya
1 Replies
4. Shell Programming and Scripting
This is gonna sound dumb but...
1 It seems that I cannot use the search function here properly.
In researching to find a solution to an FTP error trapping issue, I go to the search option in the forum and use FTP as a search term and ask it to select all forums to search in..... I get no... (2 Replies)
Discussion started by: Bartman
2 Replies
5. UNIX for Dummies Questions & Answers
I'm no Unix expert (so please excuse any misuse of Unix vocabulary or terminology) and I have an issue that is bugging me.
I basically have a scheduled task which uploads and then downloads some files for me using ftp. Everything was (mostly) working fine until last week. Suddenly it refuses... (1 Reply)
Discussion started by: Approx.Purified
1 Replies
6. UNIX for Dummies Questions & Answers
I am using unixs script to submit programs (SQRS) and need to trap any time of error that is received once the job finishes.
Examples of the type of errors I am getting
Error! SQR Failed To Process
mkdir: Failed to make directory
These are showing up in a log file but I do not want to... (3 Replies)
Discussion started by: TimHortons
3 Replies
7. Shell Programming and Scripting
I want to trap any errors from a backup database script and send an email when an error occurs. I can trap command errors and send an email in the following code. My problem occurs if an error occurs in the Maxl script, /opt/hyperion/AnalyticServices/bin/essmsh < MaxlScript.msh..., that is called... (0 Replies)
Discussion started by: t_coop
0 Replies
8. Shell Programming and Scripting
I'm trying to trap errors in a shell script executing an sftp command this way:
/usr/bin/sftp $FTP_USER@$FTP_SERVER <<EOF> $HOME/$ERR_FILE
cd $FTP_DIR
put $FILE_NAME
bye
EOF
I expect errors to be recorded in $ERR_FILE but they are not. The only thing in the $ERR_FILE is:
sftp> sftp>... (2 Replies)
Discussion started by: pochon
2 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
First of all this was working and stopped without reason. There is a file that it is transferred from a PC to a Unix machine (RHEL). It is not big, around 9k.
The user who performs the transfer has authority to the full path. Furthermore it is the owner of all objects.
We use... (8 Replies)
Discussion started by: 300zxmuro
8 Replies
10. Shell Programming and Scripting
Hi i am facing problem in shell scripting for ftp process getting following errors
here is the script & result
vi GtpTxnlogs_ftp.sh
"GtpTxnlogs_ftp.sh" 40 lines, 921 characters
#!/usr/bin/bash
######################################################################################
#... (4 Replies)
Discussion started by: Sarmistha
4 Replies
LEARN ABOUT OPENSOLARIS
ftp
ftp(4) File Formats ftp(4)
NAME
ftp - FTP client configuration file
SYNOPSIS
/etc/default/ftp
DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and
are ignored.
Behavior Directives
The ftp file supports the following behavior directives:
FTP_LS_SENDS_NLST=yes | no The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send
LIST instead. In order to make the Solaris ftp client send LIST when the ls command is issued, set
FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes by default.
If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is
specified in /etc/default/ftp.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbipr |
+-----------------------------+-----------------------------+
SEE ALSO
ftp(1), attributes(5)
SunOS 5.11 22 Oct 2002 ftp(4)