[X-Unix] BASH problem?
Russell McGaha
RussellMcGaha at mac.com
Tue Dec 7 16:36:55 PST 2004
On Dec 7, 2004, at 7:28 AM, Xavier Noria wrote:
> On Dec 7, 2004, at 12:47 PM, Russell McGaha wrote:
>
>> In an effort to start learning Bash I change my shell from Tcsh to
>> Bash, but that's caused a problem. I've a script that runs nightly
>> to pull and build Mozilla, the script is a Tcsh script with a first
>> line of "#!/bin/tcsh -x". Now I THOUGHT, that line told the 'system'
>> to run that script under Tcsh
>
> Yeah, that's right assuming the script has execution permmissions and
> is run as an executable. There any interpreter can be put, perl for
> instance, it does not need to be a shell.
>
> Why do you set the -x flag for a nightly script BTW?
I put it there for debugging; and forgot to take it out. :)
>
>> ; but with my shell set to Bash, I get all kinds of Bash errors on
>> the first lines of the script and the script doesn't run. I've tried
>> running "do script with command "/bin/tcsh;source MozScript1d.txt;" "
>> from an AppleScript to invoke Tsch first, and then run the script;
>> but all though Tsch gets invoked my scripts doesn't.
>> Anyone know what I'm doing wrong or how I can correct this?
>
> Does the script run under cron? Can you send the errors you get? Can
> you send the very script?
Yes; via a applescript app wrapper at the moment, but I'm going to
change that in a minute. See my reply to Eugene for the errors. I'll
post the entire script if needed.
>
> -- fxn
>
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
More information about the X-Unix
mailing list