2
votes
1answer
193 views

Piped command changes PID

I created a (Debian) init Script for an executable Jar file: [...] NAME=NameOfMyShellScript DAEMON="/usr/share/myApp/bin/$NAME" USER="myUser" PIDFILE="/usr/share/myApp/run/$NAME.pid" EXTRA_ARGS=" -c ...
8
votes
3answers
3k views

Have Bash script wait for status message before continuing

I'm firing up Selenium server with a bash script and as you can see from the timestamps on the log below, it takes about 32 seconds for the thing to fully come online: Feb 28, 2012 10:19:02 PM ...
3
votes
2answers
1k views

How can I pipe input from one SSH session to another? Using fifo?

A while ago I saw an article about piping messages from one console window to another using fifo ? I haven't used that before and can't find my link to the article. How can I set this up? I'd like ...
4
votes
2answers
3k views

How to add a timestamp to each line of a logfile?

I have an external program which I can not edit. It writes its log to a file. How do I add a timestamp to each line while the program writes to the logfile? It does not write its output to stdout. ...