Re: Shell Script not working
Re: Shell Script not working
- Subject: Re: Shell Script not working
- From: Doug McNutt <email@hidden>
- Date: Tue, 31 Jul 2007 07:56:27 -0600
At 10:19 +0100 7/31/07, bca wrote:
>I am trying to set the following cmds as a shell script which is to execute
>at login using LoginWindow Manager from Bombich, but everytime I test it I
>get error messages.
>
>#!/bin/tcsh -f
>sudo rm -dfr /Library/Caches/com.apple.ATS/
etc.
The interface to sudo requires that you type in a password the first time you use it.
I have had luck using redirection for that but it's highly insecure and I would expect Apple would make it impossible one day. A simple text file, "$HOME/pass" contains a password followed by a line end and nothing else.
sudo rm * < $HOME/pass
--
--> Evolution made it possible for mankind to invent religion. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden