Solaris) Can I set Run Control to change shell on boot?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
#passwd -e
Current Shell : /bin/ksh
New Shell : | (cursor)
My question is, can I bind some scripts in /etc/rc3.d/ that can answer the cursor part with a pre-written line of command?
I've tried passwd -e ; /sbin/sh and obviously failed.
I know this is a stupid question but it got me wondering.
shell solaris
add a comment |Â
up vote
0
down vote
favorite
#passwd -e
Current Shell : /bin/ksh
New Shell : | (cursor)
My question is, can I bind some scripts in /etc/rc3.d/ that can answer the cursor part with a pre-written line of command?
I've tried passwd -e ; /sbin/sh and obviously failed.
I know this is a stupid question but it got me wondering.
shell solaris
2
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells meexpectcould be useful, but not in yourrc*.ddirectories)
â Fox
Feb 9 at 5:48
1
It looks as if you're looking at possibly implementing the same functionality aschshfrom other Unix systems. Is that correct?
â Kusalananda
Feb 9 at 6:25
2
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
#passwd -e
Current Shell : /bin/ksh
New Shell : | (cursor)
My question is, can I bind some scripts in /etc/rc3.d/ that can answer the cursor part with a pre-written line of command?
I've tried passwd -e ; /sbin/sh and obviously failed.
I know this is a stupid question but it got me wondering.
shell solaris
#passwd -e
Current Shell : /bin/ksh
New Shell : | (cursor)
My question is, can I bind some scripts in /etc/rc3.d/ that can answer the cursor part with a pre-written line of command?
I've tried passwd -e ; /sbin/sh and obviously failed.
I know this is a stupid question but it got me wondering.
shell solaris
edited Feb 9 at 5:49
Fox
4,72111131
4,72111131
asked Feb 9 at 5:27
Lunartist
31
31
2
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells meexpectcould be useful, but not in yourrc*.ddirectories)
â Fox
Feb 9 at 5:48
1
It looks as if you're looking at possibly implementing the same functionality aschshfrom other Unix systems. Is that correct?
â Kusalananda
Feb 9 at 6:25
2
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39
add a comment |Â
2
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells meexpectcould be useful, but not in yourrc*.ddirectories)
â Fox
Feb 9 at 5:48
1
It looks as if you're looking at possibly implementing the same functionality aschshfrom other Unix systems. Is that correct?
â Kusalananda
Feb 9 at 6:25
2
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39
2
2
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells me
expect could be useful, but not in your rc*.d directories)â Fox
Feb 9 at 5:48
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells me
expect could be useful, but not in your rc*.d directories)â Fox
Feb 9 at 5:48
1
1
It looks as if you're looking at possibly implementing the same functionality as
chsh from other Unix systems. Is that correct?â Kusalananda
Feb 9 at 6:25
It looks as if you're looking at possibly implementing the same functionality as
chsh from other Unix systems. Is that correct?â Kusalananda
Feb 9 at 6:25
2
2
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f422971%2fsolaris-can-i-set-run-control-to-change-shell-on-boot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
You want your legacy service startup scripts to pre-populate a text field in something that is not a service? (Something tells me
expectcould be useful, but not in yourrc*.ddirectories)â Fox
Feb 9 at 5:48
1
It looks as if you're looking at possibly implementing the same functionality as
chshfrom other Unix systems. Is that correct?â Kusalananda
Feb 9 at 6:25
2
Maybe you can use usermod instead of passwd.
â Mark Plotnick
Feb 9 at 9:39