LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Lauching script at shell startup without having root access. (https://www.linuxquestions.org/questions/linux-newbie-8/lauching-script-at-shell-startup-without-having-root-access-264975/)

begin55676 12-10-2004 03:29 PM

Lauching script at shell startup without having root access.
 
Hello


I am searching how to automatically launch a script at the terminal start up with limited access : i am not authorized to log as root on this machine, and so I can't edit /etc/csh.cshrc, etc...

Can I do it with editing .tcshrc or another user's accessible files ?


Sorry for my english and my newbicity and thanks to you ;)

zatriz 12-10-2004 03:35 PM

It all depends on when you want the script to be launched.
Terminal startup if you mean when you login to the server then yes you can add your script to the .tcshrc or .bashrc or whatever shell you have.

But if you want the script to be launched when the server first boots up then you will have to have access to one of the startup files most notably rc.local

begin55676 12-10-2004 03:42 PM

Quote:

Terminal startup if you mean when you login to the server then yes you can add your script to the .tcshrc or .bashrc or whatever shell you have.
That's what I want to do but I can't get it worked, when the terminal is launched, it stops and wait. I need to do some CTRL-C to continue the launching.

Can you please tell me how I must make the reference to the script in tcshrc, perhaps I did it wrong ?
Thanks you a lot !


All times are GMT -5. The time now is 03:02 PM.