Cron only occasionally sends e-mail on output and errors
On Debian 8.1, I’m using a Bash feature to detect whether the stackoverflow.com website is reachable:
On Debian 8.1, I’m using a Bash feature to detect whether the stackoverflow.com website is reachable:
I need a shell script which finds files which are created 1 hour before or 1 hour after a particular file (test.txt) was created.
I need a command that will wait for a process to start accepting requests on a specific port.
On a git conflict, I can currently do: git diff path/to/some/file.txt … after reviewing the diff, usually I want to do: git checkout –theirs path/to/some/file.txt && git add path/to/some/file.txt It’s painstaking to edit both paths each time, so I’d like to be able to do the following: git checkout –theirs <ref> && git add path/to/some/file.txt … Read more
I am at a bit of a loss as to the purpose of set and export in Bash (and I guess probably other shells too).
I’m on a Mac but I think this is generally Unix-applicable. I’m in the process of learning shell scripting and there’s something I seem to be missing. When I’m in the ordinary terminal, I can use scripting syntax like for loops and such in conjunction with commands to do stuff. But….bash opens an interpreter for … Read more
Is there any tool/command in Linux that I can use to run a command in more than one tab simultaneously? I want to run the same command: ./myprog argument1 argument2 simultaneously in more than one shell to check if the mutexes are working fine in a threaded program. I want to be able to increase the number of instances of this program so as to put my code under stress later on.
I’m trying to locate where some files are stored and I can easily browse to them via ssh by going to “cd ~/foldername”, however, I have no idea what directory “~/” actually is.
I’d like to download, and extract an archive under a given directory. Here is how I’ve been doing it so far:
I need to execute multiple commands using nohup. Each command should be executed after the previous command.