it fixed guys
I used exec script_name to load the script so when user type exit...the menu will log out the linux session
now guys as I said that code above is a simulated linux shell very basic....
is there a way to improve it?
commands like these ones won't work
/sbin/ifconfig -a | less
/sbin/ifconfig > ip
it looks like when using | or > or similar characters my simulated command line won't work
any idea how to improve this simulated command line?
thanks a lot