How does a shell script know how it was invoked?
From: Captain Dondo (yan_at_NsOeSiPnAeMr.com)
Date: 05/29/05
- Next message: Alan Connor: "Re: Electric Eyes wants to load strange files"
- Previous message: Doug Laidlaw: "Electric Eyes wants to load strange files"
- Next in thread: Ryan Reich: "Re: How does a shell script know how it was invoked?"
- Reply: Ryan Reich: "Re: How does a shell script know how it was invoked?"
- Reply: Byron A Jeff: "Re: How does a shell script know how it was invoked?"
- Reply: Tony Lawrence: "Re: How does a shell script know how it was invoked?"
- Reply: Unruh: "Re: How does a shell script know how it was invoked?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 May 2005 05:46:18 -0700
I need to write a script that calls dialog to present the user with a few
options.
The script can be invoked either from inside an application or a command
line, specifically from inside gthumb (or similar app) as 'Open this
picture with' or as a standalone command line app.
gthumb, if you don't use it, is a picture browser.
The behavior I want is this:
If invoked from inside an app, open a terminal for the app.
If invoked from the command line, use the terminal you were invoked from.
I've not found any scripts that do this, leading me to believe it may be
impossible. But the word 'impossible' should not be in the *nix
vocabulary....
-- use munged address above to email me SpamTrap DoMeNow@seiner.com
- Next message: Alan Connor: "Re: Electric Eyes wants to load strange files"
- Previous message: Doug Laidlaw: "Electric Eyes wants to load strange files"
- Next in thread: Ryan Reich: "Re: How does a shell script know how it was invoked?"
- Reply: Ryan Reich: "Re: How does a shell script know how it was invoked?"
- Reply: Byron A Jeff: "Re: How does a shell script know how it was invoked?"
- Reply: Tony Lawrence: "Re: How does a shell script know how it was invoked?"
- Reply: Unruh: "Re: How does a shell script know how it was invoked?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|