executing a sh script from the cron
I have a test.sh script
I have a test.sh script
Is there a way to only execute a command after another is done without a temp file?
I have one longer running command and another command that formats the output and sends it to a HTTP server using curl.
If i just execute commandA | commandB, commandB will start curl, connect to the server and start sending data. Because commandAtakes so long, the HTTP server will timeout.
I can do what I want with commandA > /tmp/file && commandB </tmp/file && rm -f /tmp/file
Suppose I want to execute a sequence of four commands that I have executed before. If the first one is 432 in the command-history, then I could do:
I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script?
I’ve been a Linux user for a while, and I’ve a pretty decent understanding of most the common command line utilities. However, ones that come up and up again in relation to programming are grep, awk, and sed. About the only thing I’ve used grep for is piping stuff into it to find files in … Read more
http://linuxg.net/how-to-transform-a-process-into-a-daemon-in-linux-unix/ gives an example of daemonizing a process in bash:
It appears I still miss some things about the way permissions work. I am on a debian 7 system btw.
just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user and group are set to me. It also resides in my $HOME directory since that is where I downloaded it to.
at 18:00 shutdown now and shutdown 18:00 , are they starting the same service? Do they work the same way?
I was just running a few commands in a terminal and I started wondering, does Unix/Linux take shortcuts when running piped commands?
I’m looking for an ASCII art generator (text is preferred, but images will do too) in the sl style, but with text instead of trains. Any suggestion?