Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.OS.VXWORKS
How to save the output of a command in buffer?
From
IoClaudio
@21:1/5 to
All
on Wed Feb 7 08:34:22 2018
Hi,
I've found this snippet of code that saves the output of the command ifconfig in a file on a ramdisk:
...
char myBuf[ BUFF_SIZE ];
(void)ifconfig( 0 );
fflush ( fp );
rewind ( fp );
ul_bytesRead = fread( (char*)myBuf, 1, BUFF_SIZE, fp );
...
Is there a way to save the output of "ifconfig" directly into the buffer "myBuf" ?
Thank yopu very much
cld
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Briels
Tue Apr 23 20:54:03 2024
from
Uk
via
SSH
Cronus
Tue Apr 23 19:46:51 2024
from
Provo, Ut
via
SSH
Keyop
Tue Apr 23 19:40:37 2024
from
Huddersfield, West Yorkshire
via
SSH
Keyop
Tue Apr 23 10:35:46 2024
from
Huddersfield, West Yorkshire
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
296
Nodes:
16 (
2
/
14
)
Uptime:
12:46:33
Calls:
6,645
Calls today:
5
Files:
12,190
Messages:
5,326,829