Tag Info

New answers tagged

1

There is no. Very easy to write one with perl. Here's untrap script: #!/usr/bin/perl $SIG{INT} = "DEFAULT"; exec { $ARGV[0] } @ARGV or die "couldn't exec $ARGV[0]: $!"; Example usage: #!/bin/bash untrap bash -c ' sleep 3 echo aaa ' & trap '' INT wait $! If you remove untrap prefix, Ctrl-C won't kill the script. More versatile script: ...


3

The POSIX standard says: "Filenames beginning with a ( '.' ) and any associated information shall not be written out unless explicitly referenced, the -A or -a option is supplied, or an implementation-defined condition causes them to be written." Being root is evidently not considered a condition which causes hidden files to be written by the GNU ...


0

Here is something I sometimes add on a server to easily handle race conditions for any job's on the machine. It is simmilar to Tim Kennedy's post, but this way you get race handling by only adding one row to each bash script that needs it. Put the content below in e.g /opt/racechecker/racechecker : ZPROGRAMNAME=$(readlink -f $0) EZPROGRAMNAME=`echo ...



Top 50 recent answers are included