Ask a Question related to Linux / Unix Administration, Design and Development.
-
David Douthitt #1
Re: "No Shell"
"Michael Vilain <vilain@spamcop.net>" wrote:
I thought both HP-UX 10.20 and 11 used a POSIX sh. Trying to find the> Just as an aside, if you change HP/UX's root shell to anything other
> than what HP set it to (I vaguely recall setting it to /sbin/ksh rather
> than their braindead non-POSIX /sbin/sh), the system wouldn't shutdown.
> The shutdown command said to change the shell back to /sbin/sh, then run
> shutdown again. I did this on 10.20 some years ago and don't know about
> 11.
Bourne shell on HP-UX is always fun (sigh).
I would have loved to switch our HP-UX systems to /bin/ksh but I didn't
know enough about the system to do such with impunity - I've heard
enough times the horror stories about not being able to log in and so
forth. When I start wanting more, I always just use the command
"/bin/ksh" and then continue on...
Linux is another matter - I know enough about Linux that I routinely
switch all root accounts to /bin/ksh. Only time it matters is if any of
the startup scripts use a "bash-ism" and don't remember to start their
script with "#!/bin/sh" ...
FreeBSD is yet another matter - I don't know if I could switch root's
shell without problems (their default is /bin/csh) but I don't have to.
There is a user "toor" which is also uid 0 included in FreeBSD for
just such a purpose - change the shell (for "toor" that is) all you
want, that's why "toor" is there.
David Douthitt Guest
-
CPAN shell says "Out of memory!"
I'm trying to use the CPAN shell to do installation of some modules on a web hosting account. It is not, however, going quite as smoothly as I... -
server.createObject("wscript.shell") ... wShell.run ... stopped working...
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our... -
what's the difference between ". cmd" and "cmd" in shell script??
Thank u very much!! -- Zhao YouBing, Ph.D student State Key Lab of CAD&CG,Zhejiang University, Hangzhou, 310027, P.R.China Tel :... -
server.createobject("wscript.shell")
How about: set wshell = server.createobject("wscript.shell") wshell.run "c:\file.bat " & x set wshell = nothing And then in your batch, use... -
Error:: Activex componet can not create object:"WScript.Shell"
I am trying to use the shell object to send keys to the explorer browser to run the send page funcion. I am receiving the above error only when I... -
jpd #2
Re: "No Shell"
On 2004-05-19, David Douthitt <ddouthitt@cuna.coop> wrote:
Which in itself is bad enough.> Linux is another matter - I know enough about Linux that I routinely
> switch all root accounts to /bin/ksh. Only time it matters is if any of
> the startup scripts use a "bash-ism" and don't remember to start their
> script with "#!/bin/sh" ...
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
jpd Guest
-
Kevin Collins #3
Re: "No Shell"
In article <c8g42b$jmv$1@grandcanyon.binc.net>, David Douthitt wrote:
They do - /sbin/sh is a POSIX sh, /usr/old/bin/sh is Bourne. And HP's /sbin/sh> "Michael Vilain <vilain@spamcop.net>" wrote:
>>>> Just as an aside, if you change HP/UX's root shell to anything other
>> than what HP set it to (I vaguely recall setting it to /sbin/ksh rather
>> than their braindead non-POSIX /sbin/sh), the system wouldn't shutdown.
>> The shutdown command said to change the shell back to /sbin/sh, then run
>> shutdown again. I did this on 10.20 some years ago and don't know about
>> 11.
> I thought both HP-UX 10.20 and 11 used a POSIX sh. Trying to find the
> Bourne shell on HP-UX is always fun (sigh).
shares the codebase with /usr/bin/ksh :
$ strings /sbin/sh | grep -i ksh
ksh: Cannot reset line disciplines
ksh: Cannot set line disciplines
ksh: sysconf error
ksh: no memory
And I can't think of anything offhand that can be done with ksh as a user shell
and not be done exactly the same way with /sbin/sh on HP-UX...
It only matters during a system recovery where your filesystems may not be>
> I would have loved to switch our HP-UX systems to /bin/ksh but I didn't
> know enough about the system to do such with impunity - I've heard
> enough times the horror stories about not being able to log in and so
> forth. When I start wanting more, I always just use the command
> "/bin/ksh" and then continue on...
mounted or your shared libraries are for some reason not accessible. Since
/usr/bin/ksh uses shared libs, it will not work. All executables in /sbin do
not required shared libs, so /sbin/sh is THE shell to use for root.Since ksh (assuming you mean pdksh) follows the same convention of using shared>
> Linux is another matter - I know enough about Linux that I routinely
> switch all root accounts to /bin/ksh. Only time it matters is if any of
> the startup scripts use a "bash-ism" and don't remember to start their
> script with "#!/bin/sh" ...
>
libraries under /lib, which should be on th "/" filesystem, that seems pretty
safe.
Out of curiousity, why do you prefer ksh over bash as a user shell? I
personally use ksh as a user shell, but use /bin/bash for root.
Kevin> FreeBSD is yet another matter - I don't know if I could switch root's
> shell without problems (their default is /bin/csh) but I don't have to.
> There is a user "toor" which is also uid 0 included in FreeBSD for
> just such a purpose - change the shell (for "toor" that is) all you
> want, that's why "toor" is there.
Kevin Collins Guest
-
David Douthitt #4
Re: "No Shell"
Kevin Collins wrote:
Several reasons:> Out of curiousity, why do you prefer ksh over bash as a user shell? I
> personally use ksh as a user shell, but use /bin/bash for root.
* Standard: There are no extensions to trip over when I take a Linux ksh
script into a HP-UX or Unixware environment... ksh is standard.
* Clean vi-editing support - everytime I enable vi command history
editing, I find out immediately if I'm in bash or not. Bash gives nasty
prompts and in general acts funny.
* Minimalist: pdksh (or ash, by the way) support nearly everything from
ksh and are much smaller than bash.
* Familiarization: this is personal, and somewhat professional, but I
was programming in ksh (and using csh) before bash came along. I
finally switched to ksh when I started work here as ksh was the standard
shell already and I wanted to learn it (I could have used csh).
David Douthitt Guest
-
Kevin Collins #5
Re: "No Shell"
In article <c8gm54$o8m$1@grandcanyon.binc.net>, David Douthitt wrote:
While I generally agree with that, there are differences and incompatibilities> Kevin Collins wrote:
>>>> Out of curiousity, why do you prefer ksh over bash as a user shell? I
>> personally use ksh as a user shell, but use /bin/bash for root.
> Several reasons:
>
> * Standard: There are no extensions to trip over when I take a Linux ksh
> script into a HP-UX or Unixware environment... ksh is standard.
between pure ksh88 and pdksh. The folks who post to this group who are
"portability oriented" would probably disagree more strongly.
Thanks, all valid reasons and ones I mostly share :)> * Clean vi-editing support - everytime I enable vi command history
> editing, I find out immediately if I'm in bash or not. Bash gives nasty
> prompts and in general acts funny.
>
> * Minimalist: pdksh (or ash, by the way) support nearly everything from
> ksh and are much smaller than bash.
>
> * Familiarization: this is personal, and somewhat professional, but I
> was programming in ksh (and using csh) before bash came along. I
> finally switched to ksh when I started work here as ksh was the standard
> shell already and I wanted to learn it (I could have used csh).
Kevin
Kevin Collins Guest
-
Bill Vermillion #6
Re: "No Shell"
In article <c8g42b$jmv$1@grandcanyon.binc.net>,
David Douthitt <ddouthitt@cuna.coop> wrote:>"Michael Vilain <vilain@spamcop.net>" wrote:
>>>> Just as an aside, if you change HP/UX's root shell to anything other
>> than what HP set it to (I vaguely recall setting it to /sbin/ksh rather
>> than their braindead non-POSIX /sbin/sh), the system wouldn't shutdown.
>> The shutdown command said to change the shell back to /sbin/sh, then run
>> shutdown again. I did this on 10.20 some years ago and don't know about
>> 11.
>I thought both HP-UX 10.20 and 11 used a POSIX sh. Trying to find the
>Bourne shell on HP-UX is always fun (sigh).>I would have loved to switch our HP-UX systems to /bin/ksh but I didn't
>know enough about the system to do such with impunity - I've heard
>enough times the horror stories about not being able to log in and so
>forth. When I start wanting more, I always just use the command
>"/bin/ksh" and then continue on...>Linux is another matter - I know enough about Linux that I
>routinely switch all root accounts to /bin/ksh. Only time it
>matters is if any of the startup scripts use a "bash-ism" and
>don't remember to start their script with "#!/bin/sh" ...I've been using /bin/ksh for the root shell on FreeBSD for at least>FreeBSD is yet another matter - I don't know if I could switch
>root's shell without problems (their default is /bin/csh) but
>I don't have to. There is a user "toor" which is also uid 0
>included in FreeBSD for just such a purpose - change the shell
>(for "toor" that is) all you want, that's why "toor" is there.
6 years now. The real ksh, not pdksh.
As to the 'toor' account it is not there to use as an alternate
shell, it's there as a safety net. The default shell for toor is
/bin/sh. The 'toor' entry doesn't even have a shell specified
so you get the default /bin/sh. It's the smallest of all shells
on FreeBSD - at 400K - but all the FreeBSD shells, and all of
/bin for that matter, is statically linked [with the exception of
rmail].
The default root shell on FreeBSD - though called csh is not
the standard csh, but is hard-linked to /bin/tcsh an ehanced
csh.
I'd advise leaving toor completely alone.
--
Bill Vermillion - bv @ wjv . com
Bill Vermillion Guest



Reply With Quote

