Portable GUI shell scripting?

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Portable GUI shell scripting?
# 1  
Old 02-22-2005
Portable GUI shell scripting?

I have some scripts that run in Windows, and the ability to put a GUI
layer over them is kind of appealing. So when I stumbled over
http://wizapp.sourceforge.net/ I thought that was rather cute.
(Reading the "advanced batch scripting" art of the manual impresses upon me that no sane person should write Windows batch scripts, however. :-) )

I believe wizapp should work fine from under any Unix environment for Windows (Cygwin, UWin, SFU, etc.), with maybe one obvious trick needed.

Then I went looking and found a nice paper on using GUI equivalents to
shell components for teaching shell programming to students, at
http://jan.netcomp.monash.edu.au/xsc...gramming2.html
and that seemed cute too.

So I wondered whether there was a minimalist extension like wizapp that
would be available as a single command (you give wizapp various options
to tell it what kind of GUI panel to look like), so that you could
write portable GUI shell scripts. E.g. if wizapp were ported to X/Unix, the scripts would be portable. That'd be one solution.

I know many people will say "Just use Tk/Tcl", but that suffers from two
problems: each new version breaks all previous scripts; and I don't know
the language; and it's lower level than shell scripting (it's similar to
http://www.satisoft.com/satshell/: see the code for the /etc/passwd demo:
http://www.satisoft.com/examples/sat...iewpasswd.html to see what I
mean); and Tk/Tcl represents a hefty install on every target system (wizapp is just the single executable); and I can't count. :-)


luke
# 2  
Old 02-22-2005
how about using dtksh - at least under Solaris' /usr/dt/bin/dtksh
Quote:
dtksh - shell command language interpreter with access to
many X, Xt, Xm and CDE functions
sorry if you're talking only about Windows....
# 3  
Old 02-23-2005
I meant, *really* portable

Sorry, I should have made it clearer when I was talking about wanting portable GUI shell scripts, I meant *really* portable - all Unices and Windows too (via Cygwin or UWin or whatever).

dtksh otherwise would sound good, though I note this worrying quote at http://users.tpg.com.au/adsln4yb/dtkshdemos.html: "dtksh does not appear well maintained across different OSes". It does also seem to require X11, and for Windows portability you'd prefer an abstraction from the native windowing system.

Same problem applies to tksh (except that I don't think tksh is available for Windows at all).
http://www.research.att.com/~gsf/dow...open.html#tksh
http://www.cs.princeton.edu/~jlk/tksh/

A multi-purpose moderately flexible tool like the wizapp thing would handle 95% of cases. If it was built from something like tksh you'd have the flexibility to do the remaining 95%. :-) But installing tksh across a heterogeneous network of 100's of PCs running varying OSes sounds painful.

luke
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Portable shell script advise

All, I have a need for a portable shell script for LInux and HPUX. The script has a simple need; Check for local files of a specific name (i.e. filename*), scp them to another system, and archive them to a folder. The script runs via cron. I first wrote the script in Linux (bash with gnu... (4 Replies)
Discussion started by: hburnswell
4 Replies

2. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

3. UNIX and Linux Applications

Logging in to the GUI from the shell

I have an Ubuntu 12.04 LTS server running GNOME shell,that I occassionly have to remotely access to perform some maintenance. I usually vpnc into the network and then simply use vncviewer to access the Gnome GUI desktop for testing,given that the account is logged in. The other day I had to reboot... (4 Replies)
Discussion started by: metallica1973
4 Replies

4. Shell Programming and Scripting

Portable Shell Script - Determine Which Version of Binary is Installed?

I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies

5. UNIX for Dummies Questions & Answers

GUI via secure shell

Hi i am connected to remote system using putty over ssh-1 version. i can see the command line and able to perform the operations through it. is it possible to have a GUI interface of my login rather than terminal access? do i need to use any client other than putty ? any help is much... (5 Replies)
Discussion started by: rakeshkumar
5 Replies

6. Shell Programming and Scripting

GUI for shell scripts

what GUI can be used with shell scripting for example if i want to say hello in prompted window thnx in advance (3 Replies)
Discussion started by: semosam
3 Replies

7. Shell Programming and Scripting

GUI possible in shell script..?

Hi All, Currently my requirement is to parse through the log scripts and show the errors to the user.The only twist I got is it needs some GUI ,which is considered user friendly. Does anyone has any idea , if GUI can be implemented through shell scripts, please let me know. Thanks! nua7 (5 Replies)
Discussion started by: nua7
5 Replies

8. Shell Programming and Scripting

Portable scripting

For historical, simple, practical and portable reasons my scripts start normally with "#!/bin/sh", hence I restrict myself to those features available in the Bourne Shell. The few cases where I would use ksh or bash is if I know this script is targetted at some subset of platforms where that is... (0 Replies)
Discussion started by: porter
0 Replies

9. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

10. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies
Login or Register to Ask a Question