Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-23-2006, 11:21 AM   #1
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 <<EOF
user $1 $2

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


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, 12:35 PM   #2
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


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 03:00 PM
Possible to pipe output and error to a file while displaying them on monitor? Akhran Linux - Newbie 2 03-29-2006 05:04 AM
ftp file listing: how to pipe to less? Lotharster Linux - Newbie 2 11-29-2005 08:45 PM
Broken Pipe error with rpmbuild in rh9 tuxfood Red Hat 1 05-21-2005 04:30 PM
Broken Pipe Error ken734 Linux - Newbie 6 09-04-2003 09:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:17 AM.

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