Re: shell command wrapper
- From: FrenKy <frenky@xxxxxxx>
- Date: Thu, 22 Nov 2007 17:01:30 +0100
adi_guy wrote:
On Nov 20, 1:10 pm, Bill Marcum <marcumb...@xxxxxxxxxxxxx> wrote:Yep.On 2007-11-20, adi_guy <adil.m...@xxxxxxxxx> wrote:
Hi,A proprietary linux? Is that possible?
I have a properietary linux running on my server. System is
capable of running under low memory conditions.
I have a vi editor available on the system.
I want to create a shell script wrapper over the actual vi command. IName your script vi, rename the real vi or change PATH so your vi is
am planning to verify available memory
before launching vi editor. So when somebody types vi command on the
shell prompt, it should invoke my wrapper
then my wrapper would invoke the actual vi editor after verification.
found first; do whatever tests you need and then
exec the_real_vi "$@"
It is not actually proprietary. It is open source distribution with
some extensions...
Thanks for your description. But is it all I have to do ?
You could do one thing different - define alias vi (system wide) that would call your script and then follow Bill's suggestion.
And, don't forget to use exec from your script.
.
- References:
- shell command wrapper
- From: adi_guy
- Re: shell command wrapper
- From: Bill Marcum
- Re: shell command wrapper
- From: adi_guy
- shell command wrapper
- Prev by Date: Re: module license taints kernel.
- Next by Date: Re: module license taints kernel.
- Previous by thread: Re: shell command wrapper
- Next by thread: transfer data from DMA into file
- Index(es):
Relevant Pages
|