xfskin and freebsd

David Wijnants dwijnants at askalix.com
Wed Mar 6 14:40:50 CET 2002


For simplicity, just use tcl_platform(os) to get the operating system
name :

$ tclsh
%
% parray tcl_platform
tcl_platform(byteOrder) = littleEndian
tcl_platform(machine)   = i686
tcl_platform(os)        = Linux
tcl_platform(osVersion) = 2.4.9-31
tcl_platform(platform)  = unix
tcl_platform(user)      = dave
%
% set uid $tcl_platform(user)
dave
%

And here's another way to find out the pid of xfwm running under your id
(no -a option) - should work on Linux and BSD :

set pid [ exec ps -x -opid,command     |\
               egrep {(xfwm$)|(xfwm )} |\
               grep -v grep            |\
               cut -b1-5 ]


Dave.



"H.R. ter Veer" wrote:
> 
> On Sat, 02 Mar 2002 10:55:09 +0100
> "Giancarlo Rosso" <giancarlo_rosso at hotmail.com> wrote:
> 
> Hi,
> 
> I'm trying to alter the script for better (platform independent) support,
> but i don't have a freeBSD to test (parts) of the script on.
> can you try running attached script ( in a shell), and mail the results?
> 
> thanks.



More information about the Xfce mailing list