Re: FVWM: simple question: how execute xterm and then a script?
Alas! Bruce M Beach spake thus: On Mon, 19 Aug 2002, Rob 'Feztaa' Park wrote: Alas! Bruce M Beach spake thus: + All Exec xterm ; xterm doesn't work. Nothing happens. If I remove the last xterm then an xterm pops up as expected, as in Didn't we just go through this on another thread? The syntax you are looking for is this: + All Exec xterm xterm Yes, and for reasons not understood the original emails appeared appeared out of nowhere from the list, or I sent them again without being aware of it. Sorry, I was being a bit impatient. Mikhail (sp? sorry) explained that due to moderation, messages arrive out of order. No other list I know is like this ;) -- Rob 'Feztaa' Park http://members.shaw.ca/feztaa/ -- The Abrams' Principle: The shortest distance between two points is off the wall. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On Sat, 17 Aug 2002, Mikhael Goikhman wrote: On 17 Aug 2002 19:13:24 +0200, Ulrich Fahrenberg wrote: On Sat, 17 Aug 2002, Felix Kater wrote: I defined a Menu to start an xterm like this: AddToMenu MenuBackup + start backup Exec exec xterm Along these lines how would some one start multiple applications? Consider: AddToMenu Tails Tails Title + Messages exec xterm -fn 7x13bold -T \ messages -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/messages I have 5 or 6 tails that I bring up and sometimes I would like to bring up different groups of them. I tried + All Exec exec xterm -fn 7x13bold -T \ Messages -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/messages ; \ xterm -fn 7x13bold -T \ Syslog -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/syslog I thought the ';' would work. By the way I have a very unusual problem with fvwm-2.5.2. It just occurred while I was writing this email. And its this kind of problem. Intermittent, (i.e. occurs every couple of days.) It seem to occur under heavy load, and perhaps is connected with a large amount of output to an xterm. What happens is that the output to the xterm freezes, until I bring the mouse into the xterm (FocusFollowsMouse) then every everything is back to normal. This time was unusual because I happened to have 'top' running. The processors were about 75% usage (say), the output stopped in an xterm and the processors wentt o to 100.0% idle, (I was doing a series of builds) I typed this letter for a while and finally moved the mouse into the xterm. The builds started up again and the processors went back to 75% usage again. What I didn't do, I'm sorry to say was type 'ps x' to see what it said. I know that fvwm-2.5.2 is development, but I need to use it because it fixes some serious problems that occurred with an upgrade to xwindows 4.2 fvwm-2.5.2 seems to work fine anyway. I haven't been on the site for a while to see what the latest is. Bruce -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 18 Aug 2002 06:20:23 +, Bruce M Beach wrote: Along these lines how would some one start multiple applications? Consider: AddToMenu Tails Tails Title + Messages exec xterm -fn 7x13bold -T \ messages -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/messages I have 5 or 6 tails that I bring up and sometimes I would like to bring up different groups of them. I tried + All Exec exec xterm -fn 7x13bold -T \ Messages -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/messages ; \ xterm -fn 7x13bold -T \ Syslog -fg white -bg black -j -rw -aw +sf -sl 200 -sb -e \ tail -f /var/log/syslog I thought the ';' would work. Here you should remove exec: Exec xterm ; xterm ; xterm The last is optional, but I would leave it for symmetry. If you use shell controls like ;, , (), |, where a shell should spawn additional processes, you should do this in Exec not Exec exec. Another solutions to your problem are: instead of writting several shell commands in one line, create a small shell script and call it, or create a function with multiple Exec exec commands. By the way I have a very unusual problem with fvwm-2.5.2. It just occurred while I was writing this email. And its this kind of problem. Intermittent, (i.e. occurs every couple of days.) It seem to occur under heavy load, and perhaps is connected with a large amount of output to an xterm. What happens is that the output to the xterm freezes, until I bring the mouse into the xterm (FocusFollowsMouse) then every everything is back to normal. This time was unusual because I happened to have 'top' running. The processors were about 75% usage (say), the output stopped in an xterm and the processors wentt o to 100.0% idle, (I was doing a series of builds) I typed this letter for a while and finally moved the mouse into the xterm. The builds started up again and the processors went back to 75% usage again. What I didn't do, I'm sorry to say was type 'ps x' to see what it said. I know that fvwm-2.5.2 is development, but I need to use it because it fixes some serious problems that occurred with an upgrade to xwindows 4.2 fvwm-2.5.2 seems to work fine anyway. I haven't been on the site for a while to see what the latest is. Try to narrow the problem and make it reproducible, so that others can see this too. Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On Sat, 17 Aug 2002, Mikhael Goikhman wrote: I thought the ';' would work. Here you should remove exec: Exec xterm ; xterm ; xterm The last is optional, but I would leave it for symmetry. + All Exec xterm ; xterm doesn't work. Nothing happens. If I remove the last xterm then an xterm pops up as expected, as in + All Exec xterm but if I add a semicolon + All Exec xterm ; then nothing happens By the way I have a very unusual problem with fvwm-2.5.2. It just occurred while I was writing this email. And its this kind of problem. Intermittent, .. Try to narrow the problem and make it reproducible, so that others can see this too. Tricky, only thing I can think of is 'ps x' to see if the process's are stopped. It seems that as long as I don't move into the mouse into the window it stay in that state. All other windows are functional. The question is what to examine. Suggestions are welcome. Bruce -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
Alas! Bruce M Beach spake thus: + All Exec xterm ; xterm doesn't work. Nothing happens. If I remove the last xterm then an xterm pops up as expected, as in Didn't we just go through this on another thread? The syntax you are looking for is this: + All Exec xterm xterm -- Rob 'Feztaa' Park http://members.shaw.ca/feztaa/ -- Sometimes the best medicine is to stop taking something. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 20 Aug 2002 07:28:58 +, Bruce M Beach wrote: Yes, and for reasons not understood the original emails appeared appeared out of nowhere from the list, or I sent them again without being aware of it. One of my messages was moderated, because it had 4 recipients listed (good to know). It took a day for everyone to get it, but 3 other recipients got it immediatelly, so we continued the discussion without waiting for the parent message to appear on the list. The messages from the list have a special signature. You may disable duplicated emails if this helps (man procmailex). Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 09:55 18 Aug 2002, Bruce M Beach [EMAIL PROTECTED] wrote: | On Sun, 18 Aug 2002, Mikhael Goikhman wrote: | Funny, the following is incorrect in bash and ksh: |% xterm ; xterm |Yeah. I've seen the above % xterm ; xterm fail a million |times and never learn because it doesn't make any sense to |me. I think its a bug. Heres a line from a script where I use |the semi-colon which works just fine: |cd /usr/src; rm -rf $GCC; tar -zxvf $GCC.tar.gz; |I guess the confuses it. No, the semicolon confuses it. Try this: ; echo foo Works in zsh. Fails in bash: [EMAIL PROTECTED] cameron]$ ; echo foo bash: syntax error near unexpected token `;' Their language syntax just doesn't cope with a semicolon at the start of a command. Which is sad. All Bourne shells (bash, zsh etc) should cope with this: xterm xterm xterm because terminates a command, so you need no separator before the next xterm. Works in csh too. For your amusement, bash doesn't cope with this either: foo ( command ) which _ought_ to be the same as this: ( command ) foo because redirections are supposed to be permitted anywhere. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ The CBR and ZXR should come with a warning sticker that says 'You are not Mick Doohan, do NOT be a prat' - UK's _BIKE_ magazine -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
Alas! Mikhael Goikhman spake thus: Funny, the following is incorrect in bash and ksh: % xterm ; xterm In bash, the syntax you are looking for is simply 'xterm xterm'. -- Rob 'Feztaa' Park http://members.shaw.ca/feztaa/ -- Feel disillusioned? I've got some great new illusions, right here! -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
The real and simple truth is that the syntax of bash will just drive you crazy. Bruce -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On Sat, 17 Aug 2002, Felix Kater wrote: I defined a Menu to start an xterm like this: AddToMenu MenuBackup + start backup Exec exec xterm But how can I add something (after Exec exec xterm) to start a scipt which shows its output in that xterm? AddToMenu MenuBackup + Test Exec exec xterm -e pine works fine for me in 2.4.8 (and did in 2.2.2 too). uli -- Ulrich Fahrenberg -- http://www.math.auc.dk/~uli -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 17 Aug 2002 19:13:24 +0200, Ulrich Fahrenberg wrote: On Sat, 17 Aug 2002, Felix Kater wrote: I defined a Menu to start an xterm like this: AddToMenu MenuBackup + start backup Exec exec xterm But how can I add something (after Exec exec xterm) to start a scipt which shows its output in that xterm? AddToMenu MenuBackup + Test Exec exec xterm -e pine If your script immediatelly exits after printing the output you should prevent xterm from being closed, something like: Exec exec xterm -e sh -c date; head -1 where date is your script. This waits for Enter to be closed. Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
Alas! Mikhael Goikhman spake thus: If your script immediatelly exits after printing the output you should prevent xterm from being closed, something like: Exec exec xterm -e sh -c date; head -1 where date is your script. This waits for Enter to be closed. Interesting; I would have done 'read' instead of 'head -1' ;) -- Rob 'Feztaa' Park http://members.shaw.ca/feztaa/ -- Everyone was born right-handed. Only the greatest overcome it. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 17 Aug 2002 15:52:35 -0600, Rob 'Feztaa' Park wrote: Alas! Mikhael Goikhman spake thus: If your script immediatelly exits after printing the output you should prevent xterm from being closed, something like: Exec exec xterm -e sh -c date; head -1 where date is your script. This waits for Enter to be closed. Interesting; I would have done 'read' instead of 'head -1' ;) head is more portable, read is not available in some shells like tcsh/csh. Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 22:41 17 Aug 2002, Mikhael Goikhman [EMAIL PROTECTED] wrote: | On 17 Aug 2002 15:52:35 -0600, Rob 'Feztaa' Park wrote: | Alas! Mikhael Goikhman spake thus: | If your script immediatelly exits after printing the output you should | prevent xterm from being closed, something like: | Exec exec xterm -e sh -c date; head -1 | where date is your script. This waits for Enter to be closed. | Interesting; I would have done 'read' instead of 'head -1' ;) Me too. Doesn't even fork an extra process. | head is more portable, read is not available in some shells like tcsh/csh. Speaking as one who predates head I'd had differed on this:-) (Well, at the least started on systems that predated head). True, [t]csh users can't use read. But Bourne shell users can, and should. While we're picking nits, if one must read for an extra command, sed q is even shorter. I have never liked head myself; tail I understand - it's hard to do otherwise. But a simple: sed 12q is the same as head -12 and shorter and easier to type. And sed definitely predates head. Cheers, -- Cameron Simpson, DoD#743[EMAIL PROTECTED]http://www.zip.com.au/~cs/ Our job is to make the questions so painful that the only way to make the pain go away is by thinking.- Fred Friendly -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 18 Aug 2002 09:38:23 +1000, Cameron Simpson wrote: Me too. Doesn't even fork an extra process. | head is more portable, read is not available in some shells like tcsh/csh. Speaking as one who predates head I'd had differed on this:-) (Well, at the least started on systems that predated head). True, [t]csh users can't use read. But Bourne shell users can, and should. Continuing this useless discussion. If you don't want your script to fork, use perl and to read a line, or use $ in tcsh, or use a portable solution that is not language specific like using head/sed. Some unices have utility called line that does just what head -1 does. Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On 18 Aug 2002 07:22:14 +, Bruce M Beach wrote: On Sat, 17 Aug 2002, Mikhael Goikhman wrote: I thought the ';' would work. Here you should remove exec: Exec xterm ; xterm ; xterm The last is optional, but I would leave it for symmetry. + All Exec xterm ; xterm doesn't work. Nothing happens. If I remove the last xterm then an xterm pops up as expected, as in + All Exec xterm but if I add a semicolon + All Exec xterm ; then nothing happens Funny, the following is incorrect in bash and ksh: % xterm ; xterm But this is correct in tcsh, zsh, ash and csh. If you put a command with in parentheses it should work in all shells: Exec (xterm ); (xterm ); (xterm ) On the other hand, if you need a sequence, you don't need parentheses: Exec xterm; xterm; xterm Regards, Mikhael. -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
Re: FVWM: simple question: how execute xterm and then a script?
On Sun, 18 Aug 2002, Mikhael Goikhman wrote: Funny, the following is incorrect in bash and ksh: % xterm ; xterm But this is correct in tcsh, zsh, ash and csh. If you put a command with in parentheses it should work in all shells: Exec (xterm ); (xterm ); (xterm ) Yeah. I've seen the above % xterm ; xterm fail a million times and never learn because it doesn't make any sense to me. I think its a bug. Heres a line from a script where I use the semi-colon which works just fine: cd /usr/src; rm -rf $GCC; tar -zxvf $GCC.tar.gz; I guess the confuses it. Somebody should send a report to bug-bash@gnu.org to get clarifition. ( not me. I already got a bug report pending) I quickly tried this set -o monitor # enable jobs set -b # enable immediate reporting of SIGCHLD xterm ; xterm to enable job control and it still doesn't like it. Anyway the second form Exec (xterm ); (xterm ); (xterm ) does the trick. Sometimes something is funny is happening on the net like somebody trying to use your machine as a relay when they have no business doing so and I want to fire up a whole bunch of tails on the logs really quick. Now I can do it. Bruce -- Visit the official FVWM web page at URL: http://www.fvwm.org/. To unsubscribe from the list, send unsubscribe fvwm in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]