File: lftp-queue-kill

package info (click to toggle)
lftp 4.9.3-1.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 17,496 kB
  • sloc: ansic: 83,392; cpp: 58,864; sh: 5,543; yacc: 1,846; makefile: 289; perl: 147; sed: 16
file content (13 lines) | stat: -rwxr-xr-x 170 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# "kill all" should terminate queued commands too.

out=$(../src/lftp <<EOF
queue sleep 1000
queue sleep 2000
kill all
jobs
EOF
)
test "$out" && exit 1
exit 0