The time now is Fri 24 May 2013, 06:42
All times are UTC - 4 |
| Author |
Message |
Semme
Joined: 07 Aug 2011 Posts: 2051 Location: World_Hub
|
Posted: Sun 06 Jan 2013, 08:17 Post subject:
How to pipe freshclam into urxvt via script? |
|
As the title suggests I want the script to first open urxvt, call freshclam, execute, then stay open till completion. As I'm not sure what I'm hoping for will even work, the library bit may be excluded for the time being.
| Code: | #!/bin/bash
export LD_LIBRARY_PATH=$HOME/glibc-2.15:$LD_LIBRARY_PATH
exec ??? |
Realize this needn't be limited to freshclam. An example using wget would be equally as valid.
Thanks for any help..
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2217 Location: Gatineau (Qc), Canada
|
Posted: Sun 06 Jan 2013, 14:00 Post subject:
|
|
Greetings, Semme.
An urxvt script that works for any CLI is this:
| Code: | #!bin/sh
# freshclam.sh
####
# export LD_LIBRARY_PATH=$HOME/glibc-2.15:$LD_LIBRARY_PATH
# Remove the number sign in front of the above line if need be.
urxvt -e freshclam |
The "-e" tells urxvt to execute freshclam.
To keep urxvt opened until the CLI program has ended, the solution is simple : DO NOT add an ampersand ("&") at the end of the command line. (There are a few exceptions, but generally that works.)
The above script should open freshclam with its default parameters in the urxvt default window.
Enjoy!
musher0
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
Semme
Joined: 07 Aug 2011 Posts: 2051 Location: World_Hub
|
Posted: Sun 06 Jan 2013, 14:26 Post subject:
|
|
Greetings Musher.
I see (and simpler than I thought). What I wasn't trying was an app that had some business remaining open, say..
| Code: | | xterm -e wget http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky/wary-5.3/wary-5.3.iso |
Fact is I haven't swung over to Wary to proof the actual program.. a task I'll be addressing shortly..
Hopefully- I'll get the latest version running without the need for a rebuild.
Thanks again..
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2217 Location: Gatineau (Qc), Canada
|
Posted: Sun 06 Jan 2013, 14:41 Post subject:
|
|
My pleasure!
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0382s ][ Queries: 11 (0.0041s) ][ GZIP on ] |