Ftp Service /process Status


 
Thread Tools Search this Thread
Operating Systems Linux Ftp Service /process Status
# 1  
Old 03-08-2008
Error Ftp Service /process Status

Smilie
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  
Old 03-10-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. Shell Programming and Scripting

Show service status in dialog

Hello is it possible to show current status of service like cron with dialog ? something that show the output of service crond status in top of menu: dialog --title "Administrator" --menu "Please choose an option:" 20 55 10 \ 1 "Add New USER" \ 2 "List all user" \ 3 "Remove user" \ 4... (6 Replies)
Discussion started by: nimafire
6 Replies

3. Shell Programming and Scripting

script killing a process from service status output

Hello, can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process. I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user. # service splunk status Splunk status: splunkd... (8 Replies)
Discussion started by: bobby320
8 Replies

4. UNIX for Dummies Questions & Answers

Finding service status on windows from Linux

Hi all, Please advise how do i find services status running on windows machines from Linux. =-===================== Some one developed a script use rsh command to find the status but it stopped working. rsh <Some IIS server Name> service -S < Windows Server name where service running>... (1 Reply)
Discussion started by: ashish_uiit
1 Replies

5. AIX

service status in AIX

good afternoon to all hay i m new in AIX. my problem is that.....plz tell me how to see " service status" in AIX Becoz i run /etc/rc.d/rc.2/Sbesclientd so its show below like this bash-3.2$ sudo /etc/rc.d/rc2.d/SBESClientd status Usage: /etc/rc.d/rc2.d/SBESClientd { start | stop } I... (2 Replies)
Discussion started by: life008
2 Replies

6. UNIX for Dummies Questions & Answers

service exit status

what are the number for the exit status for command service and what does every number mean. (2 Replies)
Discussion started by: programAngel
2 Replies

7. Red Hat

#service --status-all : screen flickering

hi there when i run #service --status-all or #service nfs status the screen flickers if i ssh from remote system than i dont have flickering on the remote nor that system. is it something to do with probably display configuration. ? and which file are the display setting... (7 Replies)
Discussion started by: dplinux
7 Replies

8. Solaris

How can i know service status in solaris8,9?

How can i know service status and its dependencies in solaris 8,9? Thanks in advance.. (2 Replies)
Discussion started by: younus_syed
2 Replies

9. HP-UX

Monitor Service Status

Hey guys how do you determined the status of a certain service if its running or not aside from using ps. (0 Replies)
Discussion started by: sbn
0 Replies

10. UNIX for Dummies Questions & Answers

ftp: ftp/tcp: unknown service

Hello, when I type ftp on the server (Sco Unix 5.0.4) it gives an error messages which is "ftp: ftp/tcp: unknown service" but I have this service in '/etc/services' file. Also when I want to telnet from another machine to this machine is gives also 'telnet: tcp/telnet: unknown service' this... (2 Replies)
Discussion started by: alisevA3
2 Replies
Login or Register to Ask a Question