I swallow it in my FVWM button box with*FvwmDocks: (5x3+22+3, Padding 0 0, Container(Frame 0))
*FvwmDocks: (1x1, Swallow "FvwmScript-CPU" `FvwmScript $[fvwm_script]/FvwmScript-CPU`)
*FvwmDocks: (End)
After restart the text is printed under my xosview cpu meter. But if I execute the shell script nothing happens. As in the FVWM-script manpages described it should change the text …
Could anybody help me ? I don’t know what’s going wrong …
Hmm, why don’t you just read the output of whatever script you plan to use in with FvwmScript? Using GetOutput and PeriodicAction (iirc, check the manpage) should help with that.
If otoh you just want to use your FvwmScript to display the output of some script then why not use an FvwmButton? You can easily change the title of any FvwmButton you please by using something like:
SendToModule my_fvwm_buttons ChangeButton button_name Title whatever_you_want_to_display
As to your actual question: I have no idea why it wouldn’t work, as you’ve probably deducted by now I haven’t yet had the need to call into my FvwmScripts
This is only a pretest for my cpu program (extracted from wmcpuload). I need less than 1 second for updating. Therefore I want to send the output to my FVWM button (see screenshot below). The shell script is only a simulation if it works 8)
Yes the (LastString) part was missing in my script. But it didn’t worked also :(
But I have let it in the script and test it with the SingleClic, too. This part works well, so I thought it could be a problem with my shell script / FvwmCommand call - and yes I found the problem: I need the full path to the script !!![code]#!/bin/sh
Thanks for your reply. Cool knowledge 8) . But I have so many parts in my configs/scripts with the SetEnv variable fvwm_script that I take my last version (too much too change ). Hope you excuse me …