3 ms·
Sounds like #2 could work if you had some sort of desktop notification system. Then you could write a small script that runs your command line with stdout and s
by natep 14y ago
Sounds like #2 could work if you had some sort of desktop notification system. Then you could write a small script that runs your command line with stdout and stderr redirected to temp file(s), and then alerts you when the process is done, and what the temp filenames are. You could check on your running jobs with 'ps -C scriptname'
Or maybe opens them in $EDITOR...like this (I can't get it to work when $* has a pipe in it, unfortunately)
#!/bin/bash
out1=`tempfile -d $HOME/logs`
out2=`tempfile -d $HOME/logs`
$* >$out1 2>$out2
$EDITOR $out1 $out2 # Replace this with call to notification app and/or logic based on $?/size of $out2