On Sat, Apr 9, 2011 at 5:29 PM, etika ahuja <[email protected]> wrote:
>
>
> how to change the ownership of a file from tomcat to abc using shell script.
>
> ( we usually change the ownership of a file using sudo chown abc:abc
> file.txt and in doing this we have to give the password of root ,
> now i want to perform this task using shell script one way of doing so i
> think is using cron where i can run my  script through cron like
> root  * * *  * *  xyz.sh  where my xyz.sh would be changing my ownership of
> the file , but i don't want to schedule this task i just want perform
> it once ,how to do so please guide me )

just execute the xyz.sh once

$ bash ./xyz.sh

You need kind of internship in Linux where you can learn basics of
Linux.. your basics are very poor.. Please purchase a book to learn
Linux -

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to