Find the answer to your Linux question:
Results 1 to 6 of 6

Thread: Need Script

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Need Script

    Iam a newbie in Linux, Pardon my stupidity. I have situation where I need to run a file during boot. Problem is i cant run it as root user . Now i need a script to run this file as normal user. Please help me
    i have tried
    #su xxxx
    #cd /XXXX (Location of the file)
    Thanks for all the help

  2. #2
    OS SuSE Linux 10

  3. #3
    Linux Guru
    Join Date
    Oct 2007
    Tucson AZ
    I'm not a programmer so I doubt I'll be able to help you with this but, I think you will need to provide a little more detailed info such as:

    What do you need the script to do? do you need help writing the script or in where to put it to be run at boot?

  4. $spacer_open
  5. #4
    su - xxxx -c "cd /XXXX; ./file"

  6. #5
    thankyou, I have to try this on monday. so i will post the result later. tanx again

  7. #6
    its working thanku very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts