186,000 MPS isn't just a good idea, It's the law.
Daniel W. Cote
On Oct 31, 2012, at 10:43 AM, Daniel Cote <dwc...@yahoo.com> wrote:
I don't execute that command from the command line I do it within a shell script so it only modifies a variable in the script.
Ok, so exactly what is the command that is present in the Applications menu? Please provide the full line, not just this snippit.
Since there is no way to pass parameters to a program from the Xquartz menu
What do you mean by that? You can pass command line arguments.
I write a script using utilities I have like my xprompt.tcl utility to gather the parameters needed for the program and then I start the program using the parameters I collected.
So why is this not working? Exactly what *is* happening? Please provide specific details.
186,000 MPS isn't just a good idea, It's the law.
Daniel W. Cote
Email: dwc...@yahoo.com
On Oct 31, 2012, at 01:06 PM, Jeremy Huddleston Sequoia <jerem...@apple.com> wrote:
On Oct 31, 2012, at 9:43 AM, Daniel Cote <dwc...@yahoo.com> wrote:
It works fine from the command line in an xterm window. It also works on Fedora Linux. Where it doesn't work is from the Xquarz menu. The tcl script simply puts up a window with a prompt and an entry widget where you type in an answer and allows you to repond and then it takes that response and writes it to stdout. The backquotes around the command cause redirection of stdout to the variable YEAR.
Oh I didn't notice the backticks and responded too quickly.
What you are trying to do?
If you do that into a terminal, it will modify the YEAR environment variable in the current shell.
It's not quite clear what you expect to happen when you run that from the XQuartz menu. How are you using this? I suspect that this should properly set $YEAR, but what are you then going to do with it (ie, what's the rest of the command line)?
I created a menu entry with "TESTVAR=`echo 1234` xterm" (no quotes), and the resulting xterm did have the TESTVAR environment variable set, so I think it should be working for you. If you replace it with "YEAR=2012 ..." does it work?
It's also not clear what you're trying to do from Finder.
--Jeremy
186,000 MPS isn't just a good idea, It's the law.
Daniel W. Cote
Email: dwc...@yahoo.com
On Oct 31, 2012, at 12:27 PM, Jeremy Huddleston Sequoia <jerem...@apple.com> wrote: k
Can you be a little more specific about what you're trying to do? What makes you think the problem is the redirection of stdout? You mention redirection from the XQuartz menu and Finder, but your statement doesn't have any redirection, and I'm not sure what you're doing with Finder.
Is the problem actually that isatty() is false?
This sounds more like a bug in xprompt.tcl.
--Jeremy
On Oct 30, 2012, at 11:10 PM, Daniel Cote <dwc...@yahoo.com> wrote:
I'm running Mac OS X Mountain Lion Version 10.8.2 on a mac mini intel based. When I run my tcl script from an xterm command line it works fine but when I run it from the finder or the Xquartz menu it does't work. The problem seems to be redirection of stdout. The following statement is where it fails:
YEAR=`/usr/local/bin/xprompt.tcl -P "Enter Year(YYYY)? " -D "$THISYEAR"`
The statement works fine from the command line of an xterm but doesn't work from the Xquartz menu or the finder. Redirection of stdout doesn't seem to work from the Xquartz menu or the finder. This same script works fine under linux. Any ideas?
186,000 MPS isn't just a good idea, It's the law.
Daniel W. Cote
Email: dwc...@yahoo.com
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev
|