11 lines
375 B
Bash
Executable File
11 lines
375 B
Bash
Executable File
#!/bin/bash
|
|
NOW=`date`
|
|
echo "Executable: $0" > "$NOW.log"
|
|
echo "Timestamp: $NOW" >> "$NOW.log"
|
|
echo -n "Arguments: " >> "$NOW.log"
|
|
echo "$*" | sed ':a;s/ -/\n >>>-/;ta' >> "$NOW.log"
|
|
echo "Full command: $0 $*" >> "$NOW.log"
|
|
BACKUPCMD="`readlink -f \`which $0\``_backup"
|
|
echo "Actual command: $BACKUPCMD $*" >> "$NOW.log"
|
|
echo "$BACKUPCMD $*" | sh
|