> Logu wrote:
> > One more thing is that, cant we execute exit commamd using the C
system()
> > function. First i thought that it is not in path but when i tried with
> > "whereis exit" I couldn't find the excutable. But it works in shell.
>
> It's a bash built in command. You can use exit call. 'man 2 exit' for
> more details.

I really wanted to exit from the shell and return to login prompt and not
simply exit from the execution of program.


> > int main(void){
> >   char *pass="logu";
>
> Change this to char pass[10]="logu"; Resize it properly.
>
>  Shridhar



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to