FVWM: HELP: trouble using 'Exec echo' from FvwmCommand shell script

From: Josin Etienne <josin_at_dimensional.com>
Date: Fri, 11 Sep 1998 14:07:57 -0600 (MDT)

A little while ago i wrote about how to write (from a shell script)
        a window id produced by an Fvwm command to a file.

    I was trying to do this (after calling '. FvwmCommand.sh' from
        my bash shell script):

    Next [ *${window_name}* ] Exec echo \$w > /tmp/ztest4


Well, the solution i got, which was to escape the '$w' did not work.

So, i tried a simple test, and it apparently turns out that I
cannot even echo "FFFF" into a file !

the test script follows:

----------------------------------------------------------------------

#!/bin/bash
# to test fvwm's FvwmCommand Exec command from shell
#
. FvwmCommand.sh
#
    # this works ok (expected)
    echo "foo" > /tmp/ztest1

    # this does create a file
    Exec touch /tmp/ztest2

    # this produces an empty file.........
        # (but it works OK from FvwmTalk) <-- <--
    Exec echo FFFF > /tmp/ztest3

    # this produces an empty file too. errors file has no contents.
        # (but it works OK from FvwmTalk) <-- <--
    Exec cat /tmp/zfoo > /tmp/ztest4 2> /tmp/zerr

# this is what i would like to do in the end...
# Next [ *${window_name}* ] Exec echo \$w > /tmp/ztest4


----------------------------------------------------------------------

thanks for any insights... - josin

_________________________________________________________________________
In Heaven there will be no DOS, no Intel, and above all, no Bill.


--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Sep 11 1998 - 22:08:24 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST