Re: Automator services - echo, stdout, stderr and writing to console
Re: Automator services - echo, stdout, stderr and writing to console
- Subject: Re: Automator services - echo, stdout, stderr and writing to console
- From: René v Amerongen <email@hidden>
- Date: Mon, 20 Sep 2010 17:47:59 +0200
Hi Lars
Op 15 sep 2010, om 13:31 heeft Lars Blumberg het volgende geschreven:
> Hi André,
>
>>> I want to write to the console to show up my echo's.
>>> Reading the Apple docs I need to use
>>>
>>> set -xv
>>> exec 2>>/dev/console
>>> echo myLine 1>&2
>>>
>>> but it doesn't show up in the console.
>
> I am wondering how you can address to which terminal your output is being written since you can have several terminals opened.
>
> Why do you want to write to console? If it's just for debug, a better way is to call
>
> log "my log text"
>
> within an AppleScript action. This text can then be retrieved by using the program "Console" (not to confuse with the Terminal).
Maybe confused here, but thats the Console I am writing about where it should showup. The Console.app ( system.log ) should see it.
Everything is in bash script and the code is also used somewhere else. So to change that code means more maintenance.
Why is Apple giving this as the way to do it.
I notice also that for the above code it needs admin right too ( sudo, not just an admin )
Now am using logger.
>
> Alternativly you can write to the system log by calling within the terminal:
>
> echo "debug output" >> /private/var/log/system.log
>
> but this requires admin privileges.
Thats the point.
Thanks again _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden