hi ,,how to make a shell to call some 'ls -l' and capture the output of the command in one string?
Re: capture outputthe
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
example.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
digital man
Snapple "Real Fact" #13:
Cats have over 100 vocal sounds.
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.
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 103 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 03:06:03 |
| Calls: | 7,055 |
| Calls today: | 8 |
| Files: | 8,560 |
| D/L today: |
2,453 files (983M bytes) |
| Messages: | 373,266 |
| Posted today: | 4 |