Re: Getting a program to inform you when it's done
- From: Janne Blomqvist <foo@xxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 20:38:36 +0300 (EEST)
Random Programmer wrote:
> Hi guys. Any ideas on how to get a program to inform you when it has
> finished a run (remotely & locally)? It is a stochastic solver so it is
> hard to predict when it will finish...
>
> Assume 3 scenarios:
>
> 1) With a Linux comp with me present next to it.
> For some reason, the "result = systemqq('beep')" command gives me "sh:
> beep: command not found".
>
> 2) With a remote Linux comp with me using a Windows comp across town.
> Is there such a thing as "remote beeping", so I can get my remote Linux
> comp to get my local Windows comp to beep? I can open my firewall to
> traffic from the remote comp's port.
>
> 3) Remote Linux to local Linux.
One thing you can do is to send a mail when you're
finished. Incidentally, that's how batch schedulers do it if you want
some notification.
For a simple solution, run the program from a shell script like:
#!/bin/sh
/path/to/your/app > logfile 2>&1
mail -s "Program finished" your@xxxxxxxx < logfile
# End of script.
That way you'll get an email containing the standard output and error
from your program.
--
Janne Blomqvist
.
- Follow-Ups:
- Re: Getting a program to inform you when it's done
- From: Random Programmer
- Re: Getting a program to inform you when it's done
- References:
- Getting a program to inform you when it's done
- From: Random Programmer
- Getting a program to inform you when it's done
- Prev by Date: Re: Getting a program to inform you when it's done
- Next by Date: Re: Getting a program to inform you when it's done
- Previous by thread: Re: Getting a program to inform you when it's done
- Next by thread: Re: Getting a program to inform you when it's done
- Index(es):
Relevant Pages
|