1833427 Members
3235 Online
110052 Solutions
New Discussion

script

 
vladimir gershman
Occasional Advisor

script

hi,

i run a script and after it is done, I do not get a prompt back. Only if I press key, will I get the prompt. I run a script called S66 from /etc/rc3.d The S66 calles a C shell script, which runs, but does not show a prompt after it is done.

Suggestions?

Thanks,

Vlad
4 REPLIES 4
John Dvorchak
Honored Contributor

Re: script

Is the last line of that script exit 0 if not maybe it should be. Also files in /sbin/rcX.d should all be symbolic links to /sbin/init.d/ scripts.
If it has wheels or a skirt, you can't afford it.
Michael Steele_2
Honored Contributor

Re: script

These are boot up scrits. The S is for START. There should be a K66 as well. The 66 refers to its numberic ordering. Because they are boot up scripts usually people don't execute them manually. Why can't you copy it into a work directory?

To debug though:

sh -v -x /etc/rc3.d/S66

-or-

sh -v -x /etc/rc.config

/etc/rc.config.d is the location for all parameters passed into these files and the rc.config daemon oversees their startup. Also see the /etc/rc.log file for errors.
Support Fatherhood - Stop Family Law
RAJESH GANGADHARAN
Regular Advisor

Re: script

Hi
try to run the script in debug mode

i.e. sh -x s66, you can find out where the script is halting.
-Raj
Let the choices you make today be the choices you can live with tomorrow.
Trond Haugen
Honored Contributor

Re: script

This would be a start script for something and should be linked from /sbin/init.d/. Normally the rcn.d scripts starts with S or K, then a number followed by a name. The nake usually correlates to the name of the script in /sbin/init.d/. Ether way it usually takes an argument: start or stop. Running it in debug mode is a good idea.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn