Re: Getting a program to inform you when it's done



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
.



Relevant Pages

  • Re: i think my friends grilfriend set up a remote ass on my pc and lap
    ... accounts. ... i know some body is logging me on both comp. ... my lap top my password hase been change on my administrators ... be on a remote comp when i try to go to properties for remote conn ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: W2K Application Server > Why cant I log on anymore?
    ... How to Setup Windows, Network, VPN & Remote Access on ... I remoted into the server's local permissions with Comp Mgmnt and removed ... Since the Administrator is only an administrator, ...
    (microsoft.public.win2000.ras_routing)
  • Getting a program to inform you when its done
    ... 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? ...
    (comp.lang.fortran)
  • Re: netstats.exe
    ... > i am constantly being pinged by a netstats.exe,which causes my comp to ... blue screen crash during gaming,can someone please tell me what this.i have ... at the Command Prompt, all your active connections. ... How do you know it's coming from a remote netstats.exe? ...
    (microsoft.public.win2000.general)
  • Re: executing ssh from shell script
    ... using a shell script on the local machine. ... but the remote script is not getting executed. ... If no absolute path is given the default directory in the ssh session ... will be the remote user's home directory. ...
    (comp.os.linux.networking)