TucTuc Posted February 23, 2009 Report Share Posted February 23, 2009 Pieņemu, ka šeit ir noteikti kāds, kurš varēs izskaidrot. Doma tāda, perl script palaižot ar cmd norisin''as darbība 1 reiz. Vakar uzzināju, ka ir iespējams beigās pierakstīt rindiņu rejoin after 1 sec. neprotu programēšanu, tādēļ lūdzu jums. proti, ar šo rindiņu darbība atkartosies pēc 1 sekundes, kāda izskatīsies šī rindiņa, un kur konkrēti atradīsies? Quote Link to comment Share on other sites More sharing options...
Delfins Posted February 23, 2009 Report Share Posted February 23, 2009 wtf? tu gribi cikliski palaist? palaid to pašu ko palaidi no kamandrindas... Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 23, 2009 Report Share Posted February 23, 2009 while (1){ //Tava skripta kods sleep(1); } Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted February 23, 2009 Report Share Posted February 23, 2009 jautājums jau ar īsti perliski uzdots, bet varbūt failu run-ABC-every-second.sh #!/bin/sh while true do perl ABC.pl sleep 1 done Quote Link to comment Share on other sites More sharing options...
Delfins Posted February 23, 2009 Report Share Posted February 23, 2009 rejoin izklausās pēc specifiskas fiškas... imo Teiksim ir dēmona/klienta laidējs un rejoino kamēr nepiekonektējās.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.