I think Python is the way to go for cross platform scripting.
It installs to C:\python
if you want to run commands on windows or linux use
import os


you can then assign that to anything you want like

doStuff = os.system('dir /a')
or a linux example
os.system('ls -la')
total 7477440
drwx------. 55 ron  ron        4096 Mar 21 11:53 .
drwxr-xr-x.  4 root root       4096 Mar  2 23:24 ..
drwx------.  2 ron  ron        4096 Mar  9 01:38 .AbiSuite
drwx------.  4 ron  ron        4096 Mar  4 00:10 .adobe
drwxrwxr-x.  4 ron  ron        4096 Mar 20 13:38 Aptana Studio Workspace
-rw-rw-r--.  1 ron  ron         743 Mar  5 23:49 aray1
-rw-rw-r--.  1 ron  ron         611 Mar  5 23:47 aray1~
-rw-------.  1 ron  ron        2114 Mar 20 21:41 .bash_history
-rw-r--r--.  1 ron  ron          18 Jun 22  2010 .bash_logout
-rw-r--r--.  1 ron  ron         176 Jun 22  2010 .bash_profile
-rw-r--r--.  1 ron  ron         124 Jun 22  2010 .bashrc
drwxr-xr-x.  3 ron  ron        4096 Mar 20 21:41 .bluefish
drwx------.  6 ron  ron        4096 Mar  8 10:03 .cache
drwxrwxr-x.  2 ron  ron        4096 Mar 10 13:56 code
drwxr-xr-x. 18 ron  ron        4096 Mar 11 00:51 .config
-rw-rw-r--.  1 ron  ron          12 Mar 20 19:42 data.txt
drwx------.  3 ron  ron        4096 Mar  2 23:24 .dbus
drwxrwxr-x.  4 ron  ron        4096 Mar 11 00:57 .designer
drwxr-xr-x.  2 ron  ron        4096 Mar 21 11:52 Desktop
drwxr-xr-x.  8 ron  ron        4096 Mar 10 22:25 Django-1.2.5
-rw-rw-r--.  1 ron  ron     6379313 Mar 10 22:21 Django-1.2.5.tar

mylist = os.system('ls -la')
 then mylist is the os.system command

Operating systems are trivial sets of commands to be run.


I would get off my horse about python, except ,instead of horses, we have
squires who bang coconuts together.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20110321/69e8a6cf/attachment.html>