Galaxis
Member
- Joined
- Aug 30, 2010
- Messages
- 318
Is there any standard to bundling up shell applications? Let's say I have something like ImageMagick or the commandline tools from the wireshark distribution that I usually want to call from a shell or from scripts.
I've seen what the Java PND does (installing a small wrapper that uses pnd_run.sh to mount the PND and pass parameters to the real binary inside). That's probably the way to go in general, but it also has some drawbacks (for example you call something like that a couple of hundred times from a shell script and the PND gets mounted each time - ouch).
On the other hand, I seem to remember there's a limit to how many PNDs can be mounted at any time? So just leaving things in persistently will lead to problems too...
While that part maybe is an unsolved problem, what I'd like to have is a standardized way to run programs from PNDs from the commandline without having to call pnd_run by hand. The idea would be to have a generalized shellscript that each PND can just create hardlinks to with the program names it needs.
Has someone worked on something like that already, or is there a better idea?
I've seen what the Java PND does (installing a small wrapper that uses pnd_run.sh to mount the PND and pass parameters to the real binary inside). That's probably the way to go in general, but it also has some drawbacks (for example you call something like that a couple of hundred times from a shell script and the PND gets mounted each time - ouch).
On the other hand, I seem to remember there's a limit to how many PNDs can be mounted at any time? So just leaving things in persistently will lead to problems too...
While that part maybe is an unsolved problem, what I'd like to have is a standardized way to run programs from PNDs from the commandline without having to call pnd_run by hand. The idea would be to have a generalized shellscript that each PND can just create hardlinks to with the program names it needs.
Has someone worked on something like that already, or is there a better idea?
Last edited by a moderator: