I am using curl to upload a file to a server via an HTTP post.
curl -X POST -firstname.lastname@example.org server-URL
When I manually execute this command on the command line, I get a response from the server like "...
When I invoke dd with an invalid value for skip it prints an error message and does nothing, but doesn't return with a value different from 0, e.g.
$ cd /tmp
$ mkdir xy
$ cd xy
$ truncate -s 2M test....
I have a TCL script that sets a number of variables and reads several files. The last file it reads may contain sensitive information, so I need to make sure this file gets deleted even if an error ...
Let's have a look at the followings:
radu@Radu:~$ mkdir test
radu@Radu:~$ cd test
radu@Radu:~/test$ rmdir ~/test
radu@Radu:~/test$ man ls
man: can't change directory to '': No such file or directory
I have a bash file with commands to merge pcap files. I want to know if there is anyway to make sure a line in bash runs or not. Like in windows bat file we have %ErrorLevel% ¨
Say a command
touch -r ...
Is there any way I could trigger a bash script when ssh times out?
I have an alias to set the tmux title when starting ssh. The alias also includes a title change after the ssh session, which works ...
There exists a Git repo that is on one server, we want to generate doxygen output for it on a different server. The following command works for me but has the downside of sending a mail everytime the ...
Using VMS DCL command scripts one can catch errors by using the on error command:
$ on error then goto MyErrorHandler
$ directory samiam.txt
$ delete x.txt
$ print "Something."...
I'm trying to test the error handling in some software, in particular what happens when an error occurs reading from a file or pipe. Is there a simple way to send a certain amount of data to stdout ...