Quote:
Originally Posted by sachin.tendulka
cameron,
I have used "su" to sudo an account ramdev2, now i need to read a file "ram.inc" in a folder /ramenv ,parse it and get only the port no. in it and store it in a .txt file and return it. Since i am pretty much new in reading the file and storing it in a .txt pls. do provide me with an example. Expecting postive response..
Thanx,
Sachin
|
hey,
su is used to switch user account.
For ex:
By default you logged in into default user, but whn you want to switch the user (say your account ) then you can use "su" command,
su - xyz
password: *******
