LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2006, 12:21 PM   #1
camilian
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
ftp -n pipe for error


I have the following korn shell program for SLES 9
ftp -n server.ppd.com <<EOF
user $1 $2

cd /fs/m/project/fis/
mget *
prompt

EOF

This is working. how do I collect an error?
If I have an error after cd /fs/m/project/fis/
because the path does not exist. Then how can I check.
I see that get the following code


550 /fs/m/project/fis/ : A file or directory in the path name does not exist.

The program continues and does not stop and I can't stop after the error.
 
Old 08-23-2006, 01:35 PM   #2
camilian
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
fix the probelm

I fixed the problem by
./file >/tmp/log

log has the error iformation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PWC - Broken pipe error taladan Linux - Software 5 06-05-2006 04:00 PM
Possible to pipe output and error to a file while displaying them on monitor? Akhran Linux - Newbie 2 03-29-2006 06:04 AM
ftp file listing: how to pipe to less? Lotharster Linux - Newbie 2 11-29-2005 09:45 PM
Broken Pipe error with rpmbuild in rh9 tuxfood Red Hat 1 05-21-2005 05:30 PM
Broken Pipe Error ken734 Linux - Newbie 6 09-04-2003 10:54 AM


All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration