want to execute edquota command inside a c program
hi all
me new to linux.. have learnt the usage of quota command when i run the command from terminal i get to edit the quota through vi editor.. so i want to know how i can run edquota command from a c program. Thanks in advance, Admire linux :) |
What about:
Code:
system("whatever command you want"); |
thanks for your reply :)
i used edquota -u username. here when i execute the command from terminal i get the vi editor by default and when i save it it is converted to binary by the edquota command and stored in the quota.user file right .... so i cannot not edit that binary file directly... if i use system (command) then i cant edit the file that opens.. thats my problem ... is there another way ?? |
Just a guess but you'll probably have to use a pseudo-terminal, some manpages to look at, pty, forkpty, pts
|
All times are GMT -5. The time now is 06:43 PM. |