[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Disable Analog
- Subject: Re: [cobalt-users] Disable Analog
- From: Goetz Lohmann <goetz.lohmann@xxxxxx>
- Date: Thu Feb 20 04:23:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
aljuhani schrieb:
>You are echoing into an non-existing file.
>
>
thats not the problem cause
echo "something" > tosomewhere
will create the file tosomewhere !
>OK,
>
>cd /usr/local/sbin/
>touch analog
>pico analog
>
>then paste the folowing in the file:
>
>#!/bin/sh
>exit 0
>
>Ctr+X to exit and "Y" to Save.
>
>then
>chmod +x /usr/local/sbin/analog
>
>
this in fact should working !
>aljuhani
>aljuhani@xxxxxxxxx
>
>======= Original Message =======
>Hi Guys,
>
>Im trying to do the following.
>
>You could disable analog, the application and create a dummy in its
>place:
>
> mv /usr/local/sbin/analog /usr/local/sbin/analog.disabled
> echo "#!/bin/sh" > /usr/local/sbin/analog
> echo "exit 0" >> /usr/local/sbin/analog
> chmod +x /usr/local/sbin/analog
>
>But when i type the first echo line (as root) i get the message sh:
>!/bin/sh": event not found
>
>Any ideas why please??
>
>
it depends upon the "!" ... this is a special char for the bash ... in
example to negatiate something
... its like a NOT ... but at this point of syntax it gives the bash a
syntax error. If you don't want the
bash executing things then use ' instead of " like:
echo '#!/bin/sh' > /usr/local/sbin/analog
echo 'exit 0' >> /usr/local/sbin/analog
regards
>Regards
>
>Mark
>
>
>
--
¸,ø¤°`°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸
Götz Lohmann | D-Mannheim | Web-Developer & Sys-Admin
---------------------------------------------------------
He's the fellow that people wonder what he does and why
the company needs him, until he goes on vacation.
¸,ø¤°`°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸_¸,ø¤°`°¤ø,¸_¸,ø¤°°¤ø,¸