ftp + pop up messge


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ftp + pop up messge
# 1  
Old 08-05-2008
ftp + pop up messge

Hi ,

Please give your valuable suggestion for my following query.

I need to generate a pop up message when a cronjob fails. The cron job is in the load server and I need to show the pop up message in another web server. That is the output file(a.out) of the cron job file needs to be transferred from the load server to the web server . Then I need to create a new cgi file(popup.cgi) in the web server which reads the output file(a.out) and generate the pop up message in two pages (index.cgi and messages.cgi) which are in the web server.
In case of failure, it should show a pop up message as FAILURE. This message should be hidden when the out put file (a.out) is holding the word success.

Please let me know if u need more clarification on this and share ur opinion about this logic.If u have any other smarter way, Please yours is mostly welcome.

Thanks and Regards,
E.Ela
# 2  
Old 08-05-2008
well.....
if i got your post right, you want to know when to transfer a file generated in one server, to other.

just make the cron script better so it will know that it failed, ad send a file with a report (using ftp or scp) to the diplay server

or install The Hobbit Monitor
and create a custom script in the load server Smilie
# 3  
Old 08-05-2008
You can use wall command.
I am not sure how to use it but it uses to prompt all logged in users with message.

- nilesh
# 4  
Old 08-06-2008
Hi..thanks for ur reply ..I need to display a pop up messge in a browser when the cron job fails....
So shell i use any command to assist this task???

Thanks and Regards,
E.Ela
success250=`grep -c 250.Transfer.completed.successfully /tmp/int002_$$`
mail_list="elavv2003@gmail.com"
if [ "$success250" -eq 1 ]
then
cat $1 /tmp/ela01_$$ > /tmp/ela01err.$$

mutt $mail_list -s "Success "`basename $0` -i "/tmp/ela01err.$$" </dev/null
else
mutt $mail_list -s "FAILURE "`basename $0` -i "/tmp/ela01err.$$" </dev/null
fi
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Have error messge when mv files

I have three files on the directory dailytba=daily_tba_position.${Today} dailypol=daily_pool_position.${Today} let=LET.${Today} When I do the following: if then sftp_file=DB.DAILY.DAILYTBA.${ACCTNMGRP}.${Today}.${TM} sftp_ind=${sftp_file}.ARD.ind ... (4 Replies)
Discussion started by: digioleg54
4 Replies

2. UNIX for Dummies Questions & Answers

rsh pop up

Hi All I am using Rsh (i know yuk, but i have know choice) i would like a way to know if someone has RSH'd into my machine, some sort of pop up box maybe?? thanks (0 Replies)
Discussion started by: ab52
0 Replies

3. AIX

HACMP pop quiz

Hi all, A pop quiz is being organized in my project and I've been appointed as one of the quiz-masters. This is a sample of what we are bringing forth. Feedback is welcome. 1)Name 2 commands used to display cluster state, but doesn't use the clinfoES daemon: a) ... (0 Replies)
Discussion started by: themetalingus
0 Replies

4. Solaris

Pop up messages !!!!

Dears, Can you please help me regarding pop up messages !!!! I want system to display a pop up message for all the users connected to the system when /var size reach more the 80%. This message should appears once in an hour. Thanks for your help. (5 Replies)
Discussion started by: Danish Shakil
5 Replies

5. Shell Programming and Scripting

Pop up messages !!!!

Dears, Can you please help me regarding pop up messages !!!! I want system to display a pop up message for all the users connected to the system when /var size reach more the 80%. This message should appears once in an hour. Thanks for your help. (1 Reply)
Discussion started by: Danish Shakil
1 Replies

6. UNIX and Linux Applications

Exim mail messge error

i have a exim mail server for mms to emails ,the mails are delivering to all the Domains,except the company one.(our own email id's) When ever we send it to our internal email it says 2008-10-31 14:01:07 1Kvs21-0002zW-00 == samson.isa@gloworld.com T=remote_smtp defer (-44): retry time not... (0 Replies)
Discussion started by: satish.res
0 Replies

7. Web Development

Pop up Confirmation Box

Hi, I was writing a simple web application using Perl -CGI. When users try to do some operations, I wanted like a pop-up confirmation box. Is this possible with Perl-CGI? Thanks in advance. Regards, garric (6 Replies)
Discussion started by: garric
6 Replies

8. Linux

Pop error msg

mit@mydomain.com here is the latest error message: There was a problem logging onto your mail server. Your Password was rejected. Account: 'mit@mydomain.com', Server: 'mail.mit.com', Protocol: POP3, Server Response: '-ERR Logon failure: unknown user name or bad password.', Port: 110,... (2 Replies)
Discussion started by: naik_mit
2 Replies

9. UNIX for Dummies Questions & Answers

pop

Dear guys , I have Sun mail server ( unix 5.7 ) , I configured the sendmail on it , and it is working fine . i was checking ( smtp and pop ) on it . for smtp , i telnet IP address of server on port 25 and i got a reply . for pop , i telnet IP of server on port 110 and i got the follwoing... (3 Replies)
Discussion started by: tamemi
3 Replies

10. UNIX for Dummies Questions & Answers

xterm pop-out

Good day! We're working on a project using SUN Solaris UNIX. The project requires that based on a text file containing different dates, an xterm window will pop-out and display a simple message. We've already tried running this by including it in the cronjob but doesn't seem to work. Is there... (1 Reply)
Discussion started by: jfsuminist
1 Replies
Login or Register to Ask a Question