Professional Web Applications Themes

Perl 'system' Creates Program That Dies When First C Program Dies - PERL Miscellaneous

Hello, What are some simple ways to run a perl script from an initial c program which starts another C program that stays around after the first program goes away? Perl starts the second C program. I've tried using "system ('executable'), but when the first program is stopped the second stops without my intervention. What I want to be able to do is run my first program that starts the perl script which starts another program that stays around after the first program ends its execution. Thank you, Christopher Lusardi...

  1. #1

    Default Perl 'system' Creates Program That Dies When First C Program Dies

    Hello,

    What are some simple ways to run a perl script from an initial c program
    which starts another C program that stays around after the first program goes
    away? Perl starts the second C program.

    I've tried using "system ('executable'), but when the first program is
    stopped the second stops without my intervention. What I want to be able to do
    is run my first program that starts the perl script which starts another
    program that stays around after the first program ends its execution.


    Thank you,
    Christopher Lusardi
    Christopher Guest

  2. #2

    Default Re: Perl 'system' Creates Program That Dies When First C Program Dies

    Christopher M. Lusardi wrote:
     

    Your question isn't really a Perl question, but rather an OS question --
    the answer will be the same if it were another language that is kicking
    off your executables -- hence it is off-topic here. And the answer will
    depend on your OS. What is it?

    --
    Bob Walton
    Email: http://bwalton.com/cgi-bin/emailbob.pl

    Bob Guest

  3. #3

    Default Re: Perl 'system' Creates Program That Dies When First C Program Dies

    My operating system is Red Hat Linux.



    Bob Walton <rr.com> wrote in message news:<rr.com>... 
    >
    > Your question isn't really a Perl question, but rather an OS question --
    > the answer will be the same if it were another language that is kicking
    > off your executables -- hence it is off-topic here. And the answer will
    > depend on your OS. What is it?[/ref]
    Christopher Guest

  4. #4

    Default Re: Perl 'system' Creates Program That Dies When First C ProgramDies

    On Sun, 19 Oct 2003, Christopher M. Lusardi blurted out:
     

    Your posting style is TOFU.

    Alan Guest

  5. #5

    Default Re: Perl 'system' Creates Program That Dies When First C Program Dies

    On Sun, 19 Oct 2003 03:40:29 -0700, Christopher M. Lusardi wrote:
     
    >>
    >> Your question isn't really a Perl question, but rather an OS question --
    >> the answer will be the same if it were another language that is kicking
    >> off your executables -- hence it is off-topic here. And the answer will
    >> depend on your OS. What is it?[/ref][/ref]

    #!/usr/bin/perl -w
    system ('executable');
    while (1) {
    print "infinite loops are fun!\n";
    }

    That is OS-independent I believe... :)
    Rob Guest

Similar Threads

  1. Replies: 3
    Last Post: September 13th, 08:39 PM
  2. Replies: 3
    Last Post: July 20th, 06:50 AM
  3. #24003 [Com]: after several connections to Oracle 9i, program dies
    By mlucero at austin dot rr dot com in forum PHP Development
    Replies: 0
    Last Post: July 21st, 04:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139