File: test-detach

package info (click to toggle)
libapp-daemon-perl 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 140 kB
  • sloc: perl: 310; makefile: 8
file content (11 lines) | stat: -rwxr-xr-x 170 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/local/bin/perl -w
use strict;

     # Program:
use App::Daemon qw( detach );
detach();
sleep(5);

open FILE, ">foo.txt" or die;
print FILE "Waaah!\n";
close FILE;