File: atcron

package info (click to toggle)
lurkftp 1.00-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 324 kB
  • ctags: 375
  • sloc: ansic: 4,551; sh: 186; makefile: 162
file content (14 lines) | stat: -rwxr-xr-x 176 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if [ "$1" = "-t" ]; then
  shift; time="$1"; shift
else
  time="22:00 tomorrow"
fi

cmd=$1
shift
for x; do
  cmd="$cmd \"$x\""
done
echo "$cmd
atrun $cmd" | at $time