[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jul 7 14:35:11 1999 
Subject:Re: running unix program from pop11 (PS) 
From:Aaron Sloman 
Volume-ID:990707.04 

Another thing that may be useful is a pop-11 program which
runs a unix command and makes a list of strings containing the
output: one string per line of output

    readin_shell_output(command, shell) -> list;

e.g. the following will produce a list of strings showing who is logged
in on the machine polly:

    readin_shell_output('rsh polly who', '/bin/sh')==>

or a list giving the output of "ps"

    readin_shell_output('ps -el', '/bin/sh')==>

It is available at

    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/auto/readin_shell_output.p

It uses LIB line_repeater, which can create a "line repeater" from
a character repeater.

Aaron