September 27th, 2003, 08:50 AM
Executing a command with out using "system" command in C program
I have written a c program to set the system date and time, in IRIX system.
I have set permissions of super user to the executable file of the program.in the program i am using " system("date -u 09270000") like this.
but output says that i don't have permissions to do so,even though i have superuser bit set.
so how can i avoid this "system" command and set the time..
please help me
thanks in advance
September 27th, 2003, 10:46 AM
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo