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: Lars Blumberg <email@hidden>
- Date: Wed, 15 Sep 2010 13:31:37 +0200
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).
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.
Lars
>>
>>
>> Now I write directly to disk and will try to use logger ( hint from BH at the unix forum ) but still like to know, how can I get this working and where does /dev/console drop its output then?
>>
>> Thanks in advance _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
_______________________________________________
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