How could you, for example, set the inode of a file to a variable?
And also, since this is a Linux forum. How do you change your shell? Like from BASH to SH or CSH?Code://something like this? a = system("ls -i text.txt");
How could you, for example, set the inode of a file to a variable?
And also, since this is a Linux forum. How do you change your shell? Like from BASH to SH or CSH?Code://something like this? a = system("ls -i text.txt");
Last edited by Munkey01; 04-22-2003 at 08:46 PM.
You may want to read the manpage on system. It does not do what you think it does.
popen() and pclose() are useful for reading in the output from system commands into your program. It works just like reading from a file.