where to put autorstart command?


 
Thread Tools Search this Thread
Operating Systems HP-UX where to put autorstart command?
# 1  
Old 07-18-2007
where to put autorstart command?

hi everyone,
I want to run some command automatically when the OS boot.
In Linux, I found that we just put it into /etc/rc.local file; but I don't know where to put it in HP-UX system.
please, help me........
thanks very much, Smilie
# 2  
Old 07-19-2007
The standard way to do is,

1) Create a script in /sbin/init.d
2) Link it to a runlevel directory ( rc1.2 or rc2.d or rc3.d) with an S in the begining. And then a link to the stop runleve directory starts with "K"
3) If there is a config file, put it in /etc/rc.config.d

I think you can see lots of examples there . For example check the /sbin/init.d/net script and its configs ... you should be able to get a clearer pic from there.

Regards, Kaps
# 3  
Old 07-30-2007
Thank kapilrai,
my machine have some problem, so I've tried what you wrote here.
But I will try it, Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hebrew converted into jibrish while put command

HI Friends , I have a script which cp xml files from linux to other server thru ftp my xml file contains charcters in hebrew although , the command Binary exists in the script . the files contains Undefined Charcters after converting. script : ftp -p -n $HOST << EOF user $USER $PASSWORD... (9 Replies)
Discussion started by: naamas03
9 Replies

2. Linux

Not able to put ls -lR command in background

Hi All, i am trying to put ls -lRt command to run in the background but it fails. i continue to get output on screen and didnt get the command prompt right after i put the command in background. command i am using is ls -lRt & i am using bash. Can someone let me know how to... (6 Replies)
Discussion started by: omkar.jadhav
6 Replies

3. Shell Programming and Scripting

In put password automatically to sftp command

Hi all, i have to sftp a file to another server I don't have "expect" or sshpass on my machine its solaris 10, i want to pass password in command line or after doing this sftp user@server how to automatically provide the password as input ( stored in some variable or so) ... (1 Reply)
Discussion started by: zozoo
1 Replies

4. Shell Programming and Scripting

[SOLVED] put dd | ssh command in backgound

Greetings, I have an issue that has baffled me. I have done many searches, read the man documentation, and I have yet to find a solution. I am trying to run the following command within a script to copy a file across servers: $(dd if="$FDIR" bs=1024 2> /dev/null | ssh "$(whoami)@$SERVER"... (5 Replies)
Discussion started by: unaligned
5 Replies

5. Shell Programming and Scripting

How to put output of one command into a variable

Hi, Let say I have these 3 files (state, list and myscript). I want to be able get the sample output like below when I run myscript. Any one know how to fix the code? TIA. ~~~~~~~~~~~~~~~ > cat /home/state CA > cat /home/list CA 100 50 20 AUS 120 61 10 > cat myscript... (6 Replies)
Discussion started by: joker_789us
6 Replies

6. Shell Programming and Scripting

Status of FTP Put command

Can i capture the status of put command after i ftp a file? (4 Replies)
Discussion started by: aixjadoo
4 Replies

7. UNIX for Dummies Questions & Answers

FTP put command problem

Hello,I am trying to put something on the ftp server using the put command. Whenever I try, I get this error: ftp> put SIMS.war local: SIMS.war remote: SIMS.war 200 PORT command successful 553 Can't open that file: Permission denied I have set rwx for all on that file and I still am... (3 Replies)
Discussion started by: mojoman
3 Replies

8. UNIX for Dummies Questions & Answers

put command issues with a tftp server

From a remote client, I'm trying to create a timestamped directory and put a file inside the directory. The directory and the file are not present already inside the tftp server. If I need to put a file inside a tftp server, which is not existing already what should I need to do.. I face errors... (9 Replies)
Discussion started by: Amudha
9 Replies

9. Shell Programming and Scripting

Grep command is not working when put into cron

Hi, I worte a script which runs perfect when i execute it manually. But when i scheduled into cron the grep command alone is not working. the sample script, /usr/bin/grep FTP $subfile > /tmp/tfsrec.dat tfs=`echo $?` if then echo "FTP FOUND" else echo "FTP NOT FOUND" Where... (5 Replies)
Discussion started by: thiru_cs
5 Replies

10. Shell Programming and Scripting

put a icon/command in menu bar

Hey everyone :)my problem is i want to add a command and icon to the menu panel, normally in gnome you would just right click, add to panel etc. What i want to do is, for example , put say firefox plus a icon in the menu bar by using a bash script, what would be the command, to do this. (5 Replies)
Discussion started by: dave123
5 Replies
Login or Register to Ask a Question