canasia.org

 
  • Narrow screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size
  • default color
  • dark color
  • red color
Forums
Welcome, Guest
Please Login or Register.    Lost Password?
running for beginners Creating PID file (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: running for beginners Creating PID file
#3692
Chas. Owens (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
#make sure the last thing done is the removal of the pidfile   #note: this happens even if we die  END {     our $program;     un_link_( /var/run/$program )        or die could not delete /var/run/$program ;  }  As I have said (in fact it's said by Lincoln Stein), you should add a   if statement here to avoid the childs delete the pid file when  they're exiting.  if ( $$ == $pid ) { # $pid is parent's pid     un_link_ $pidfile or die $!; snip If the code forks (without an exec), then this is a good point.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3693
Richard Lee (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
Hi, You didn't say if you are running Windows, Linux or something else... If you have Linux, you probably already have perl. If you use Windows, get and install perl from www.activestate.com. You must also get and install MySQL from www.mysql.com if you don't have it installed. Then you need to install the modules DBI and DBD::mysql using (under Unix/Linux): $ cpan cpan install DBI cpan install DBD::mysql or cpan force install DBD::mysql Then you could read more about these modules using: $ perldoc DBI $ perldoc DBD::mysql and you can start using them like: my $dbh = DBI-connect( dbi:mysql:data_base_=test , username , thePassword ); #Create a table $dbh-do( create table foo(id int unsigned not null autoincrement primary key, body text) ); #Insert a few rows my $sth = $dbh-prepare( insert into foo(id, body) values(?, ?) ); my @bodies = qw/foo bar baz/; foreach my $body(@bodies) { $sth-execute(undef, $body); } #select a row my $sth2 = $dbh-prepare( select id, body from foo where id=? ); $sth2-execute(3); my ($id, $body) = $sth2-fetchrow_array; You will find many ways of using DBI from the POD doc. HTH. Octavian
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3694
Michael Barnes (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
- Ukryj cytowany tekst -- Pokaż cytowany tekst -
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3695
Rob Dixon (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
I don't change lists very often.  I am a member of quite a few mailing lists.  But I have never been treated like this on any list before.  I guess my original assumption was right, This may be a bit advanced for a beginner's group. Your problem is trivial compared to many that are posed here. I am sorry that you were upset by my reply, but I had no intention of being offensive and I would suggest that you misinterpreted what I wrote. You are certainly over-sensitive about being criticized for your choice of platform, as it is hard to read that into my words. If you choose to stay then we will to our best to help, but I hope your will bear in mind at least the spirit of what I have written here. If you go elsewhere for assistance then I wish you well. Rob
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3696
Dr.Ruud (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
I want to start learning about sql and how it interacts w/ perl. My rough idea is to install mysql server and read some books to start playing w/ it along w/ perl. Any advice? Consider SQLite too.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3697
Rob Dixon (Visitor)
Click here to see the profile of this user
Birthdate:
running for beginners Creating PID file  
Your posting is a reply to a posting that it has nothing to do with. Next time just start fresh. Yes indeed. It may seem like a simple way to make a new post to the group, but if you start by creating a reply and emptying the content, those of us with email clients that display threads correctly will see it as a reply to an irrelevant thread. It isn't hard to create a fresh email for a new subject. Rob
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Advertisement

www.yoursite.com
canasia.org
Compare garmin nuvifone
Buy compare &read about the Garmin nuvifone. Guaranteed next working day delivery service available online in UK.

Pozycjonowanie stron internetowych
programm-zur-rechnung.de - best lyrics store - second life - non-ferrous foundry - cool movies - English Jokes - bookstore - Myspace proxy - Text of songs - kredite
Steppery
Steppery treningowe
www.bene-fit.pl
pieniadze unijne
Pieniadze unijne, Dotacje
www.dotacje.bierzdo…
Odtwarzacze mp3 Odtwarzanie filmów
Odtwarza pliki MP3, WMA, WAV,, Nag…
www.fotoexpert.pl
fotografia ślubna
fotografia ślubna
www.fotografia.slub…
fotografia ślubna
Zdjęcia ślubne - wesela, plener
www.fotouslugi.net.…
hip-hop lyrics nieruchomości bydgoszcz kontrola dostępu GC 2008 Homes for sale in southwest Florida