The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is CEP a Service or a Process? iBot Complex Event Processing RSS News 0 05-23-2008 05:00 PM
Monitor Service Status sbn HP-UX 0 05-12-2008 05:53 AM
List Process with their Status. varungupta UNIX for Advanced & Expert Users 2 03-21-2008 09:27 PM
Getting status of a signal in process? bluehive UNIX for Advanced & Expert Users 2 01-18-2008 03:56 AM
Process status display Frank2004 AIX 2 06-01-2005 06:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-08-2008
GaneshB GaneshB is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 11
Exclamation Ftp Service /process Status


Hi
Can anyone tell me how to check the FTP process status in linux .
eg,I'm ftpping some files from "A" server to "B" server through FTP command ,
after ftpping these files , I 'm suppose to delete the files which are successfully ftpped from "A" server ,but when I 'm checking the ftp status it always showing status as "0" (echo $?) only ,So how to retrive the correct status ?
  #2 (permalink)  
Old 03-10-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
status will be 0, simply because the command succeeded - even if you do "ftp server" and then break with Ctrl^C status will still be 0. You should instead check for the existance of the transfered files with "ls", verify they are on the remote location and then delete the files.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0