peterw;190190 Wrote: > Try this patch. You can put a command (fully qualified paths only!!!) as > the filename. You can add arguments if you want, too. So you can set the > filename to > /usr/games/fortune -s > to get "short" fortunes. >
Two things: 1) I goofed and used the -t (TTY!?!) test instead of -T (text file) 2) If I'd gotten the -T test right, my patch would not work well with simple shell scripts, as it would only execute the file if it's executable and Perl thinks it's not a text file. I think point #2 is fine in Linux/Mac/Unix -- you'd just need to use a setting like /bin/bash /home/myuser/myscript.sh argument1 argument2 although perhaps the -x and -T requirement should have some alternative logic in Windows where file extensions are more important. -Peter -- peterw http://www.tux.org/~peterw/ free plugins: http://www.tux.org/~peterw/#slim BlankSaver BottleRocket FuzzyTime SaverSwitcher SleepFade StatusFirst VolumeLock ------------------------------------------------------------------------ peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107 View this thread: http://forums.slimdevices.com/showthread.php?t=33897 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/plugins
