[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-user
Subject:    Re: Running shell scripts using templates
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       1998-07-31 23:30:50
[Download RAW message or body]

On Fri, 31 Jul 1998, Glenn R. Williams wrote:

> Roberto,
> 
> Thanks for the suggestion. I tried "Run in Terminal", but the window
> disappears immediately, so I can't tell if it is running or not.
> Also, I want to pass a file to the script. (I tried putting %u after
> the command). What I am looking for is a good way to execute shell
> scripts of any kind on the desktop, and allow the user to drag and
> drop files on the script. That would mimic the way OS/2 uses
> templates, and is very convenient for testing scripts. (I know, I
> could just TYPE it in!)

I see. The window closes because the command ended, so the right thing to 
do is add something to wait.

This won't be like your example, but a simpler version.

kvt -e ls

makes kvt popup and then disappear.

So, you need to add a pause.

kvt -e /bin/sh -c "ls;read"

waits with the terminal open until you press enter.

So I suggest you create a "runinterm.sh" somewhere like this:

#!/bin/sh
$*
read

And then create a icon for "kvt -e runinterm.sh yourcommand yourargs

That should work (still untested, of course).

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
"I can attempt anything, specialization is for insects" (50% Heinlein).

================================================================================
                     +++ the KDE user mailing list +++
To unsubscribe from this list send mail to kde-user-request@kde.org with the 
                         **Subject** unsubscribe. 
================================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic