how to implement this


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to implement this
# 1  
Old 02-21-2008
Question how to implement this

Hi all,
could any of you please help me on my problem..

we are doing FTP (one report out put) from one server to another server through unix shell script program.

Due to the network issues, some times FTP process is hanging.

So we planned to modify the existing program with the following requirements..

1)FTP connection established.
a) one background process should notify(send a mail to user) user if the FTP connection is active after 20 minutes of connection established. After sending a mail this process should be ended.

Even if the FTP is completed within 20 minutes this processes should be closed without notifying (immediately after completion of FTP)

b) Main process will do FTP..
If the FTP is completed unsuccessfully then will notify user with this information....

Please provide me solution for this..

Thx
Kishore
# 2  
Old 02-22-2008
if in case you can use Perl instead of shell, you can do FTP in a separate process using Proc::Simple module. then kill that process if it doesn't finish in the required time
# 3  
Old 02-22-2008
Please post the code showing what have you done till now.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Implement ps command in C

Hello, could anybody explain how the ps command works? I know something about the proc file system. But I'm still not sure about how it exactly works. Like ps without any option will print out the current user's processes, but it never displays my web browsers such as firefox or my LibreOffice... (3 Replies)
Discussion started by: freedombird9
3 Replies

2. Shell Programming and Scripting

How to implement scenario?

hi, i am having three files which is having following data file1: field1 field2 field3 1 A B 2 C D 3 E F file2: 4 G H 1 I J 5 K L file3: 4 M N (3 Replies)
Discussion started by: angel12345
3 Replies

3. Shell Programming and Scripting

How to implement this?

hi i have a file like 1,"A","B" 2,"C","D" 1,"E","F" 3,"G","H" in output i need like 3,"G","H" 1,"E","F" 2,"C","D" 1,"A","B" (12 Replies)
Discussion started by: angel12345
12 Replies

4. Solaris

new - How i can implement Mirroring

Unix is something new for me, I trying learn about it now. I have download the sun virtualbox software and install solaris 10 into it. It is is like wizard with step by step installation guideline. :) NOw how can i implement mirroring(RAID) into the my new SunOS? can anyone give a briefly list... (14 Replies)
Discussion started by: webster5u
14 Replies

5. Shell Programming and Scripting

Trying to implement 'more' command

Hi all, i'm quite new in the UNIX world. So maybe i'm going to ask simple questions but they are unsolvable for me... I'm trying to implement the 'more' function or kinda of that, for improving my knowledges. But I encountered some problems that i hope u will help me to solve. The code i... (0 Replies)
Discussion started by: Cellofan
0 Replies

6. Shell Programming and Scripting

Trying to implement case

Hi All, My requirement is if the record is starting with 0, then do some processing. if starting with 1, some processing else (not with 0 or 1 ) then do some other processing. i tried the following case "$test" in /^0/) echo "starting with zero ;; /^1/) echo " with one" ;; *) echo... (3 Replies)
Discussion started by: ssunda6
3 Replies

7. Shell Programming and Scripting

Trying to implement case

Hi All, My requirement is if the record is starting with 0, then do some processing. if starting with 1, some processing else (not with 0 or 1 ) then do some other processing. i tried the following case "$test" in /^0/) echo "starting with zero ;; /^1/) echo " with one" ;; *) echo... (2 Replies)
Discussion started by: ssunda6
2 Replies

8. Programming

how does va_arg implement ?

1 . How does va_arg implemented by system? (2 Replies)
Discussion started by: chenhao_no1
2 Replies

9. UNIX for Advanced & Expert Users

how can i implement rlogin

how can i use a rlogin with out entered a password, someone tell me about configure the next files /.rhosts /etc/hosts.equiv and /etc/hosts but i not sure about that, or there are not enough could you tell me how to do that? (3 Replies)
Discussion started by: jav_v
3 Replies

10. UNIX for Dummies Questions & Answers

how to implement diff

Hi Does someone know how Unix or Linux implement 'diff' command ? Any good reference or the algorithm will be better ? Thanks (3 Replies)
Discussion started by: harrylong
3 Replies
Login or Register to Ask a Question