• capture output

    From Ragnarok@VERT to DOVE-Net.Baja_Programming on Tue Aug 12 13:28:00 2003
    hi ,,how to make a shell to call some 'ls -l' and capture the output of the command in one string?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Ragnarok on Tue Aug 12 13:17:00 2003
    Re: capture output
    By: Ragnarok to DOVE-Net.Baja_Programming on Tue Aug 12 2003 05:28 pm

    hi ,,how to make a shell to call some 'ls -l' and capture the output of the command in one string?

    If you want a detailed directory listging in Baja, there's a better (cross-platform) way than running 'ls -l'. See exec/dir.src for an example.

    digital man

    Snapple "Real Fact" #13:
    Cats have over 100 vocal sounds.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ragnarok@VERT to All on Wed Aug 13 09:44:00 2003
    nop, it's only an example... i want to execute others console commands such dig, ping's , greps...etc..
    some example are:

    var str;
    str = shell_and_capute_out_magic_function ("cat /etc/services|grep
    ftp");
    console.write (str);
    str = shell_and_capute_out_magic_function ("ping www.av.com");
    console.write (str);

    or maybe in baja also.

    tal.man@vert.synchro.net> escribió en el mensaje news:3F39837E.1731.bajaprog@vert.synchro.net...
    Re: capture output
    By: Ragnarok to DOVE-Net.Baja_Programming on Tue Aug 12 2003 05:28 pm

    hi ,,how to make a shell to call some 'ls -l' and capture the output of
    the
    command in one string?

    If you want a detailed directory listging in Baja, there's a better (cross-platform) way than running 'ls -l'. See exec/dir.src for an
    example.

    digital man

    Snapple "Real Fact" #13:
    Cats have over 100 vocal sounds.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Ragnarok on Fri Aug 15 14:48:00 2003
    Re: Re: capture output
    By: Ragnarok to All on Wed Aug 13 2003 01:44 pm

    nop, it's only an example... i want to execute others console commands such dig, ping's , greps...etc..
    some example are:

    var str;
    str = shell_and_capute_out_magic_function ("cat /etc/services|grep ftp");
    console.write (str);
    str = shell_and_capute_out_magic_function ("ping www.av.com");
    console.write (str);

    or maybe in baja also.

    Redirect the output to a file and read it in.

    digital man

    Snapple "Real Fact" #66:
    Americans on average eat 18 acres of pizza a day.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net