shell command wrapper



Hi,

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. I
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.

Can somebody let me know what all things I have to change in the
system in order to make this setup work.

Thanks in advance,
Adil
.



Relevant Pages

  • Re: linux command wrapper
    ... I have a properietary linux running on my server. ... 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. ...
    (comp.os.linux.misc)
  • linux command wrapper
    ... I have a properietary linux running on my server. ... 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. ...
    (comp.os.linux.misc)
  • Re: shell command wrapper
    ... I have a properietary linux running on my server. ... capable of running under low memory conditions. ... I have a vi editor available on the system. ... then my wrapper would invoke the actual vi editor after verification. ...
    (comp.os.linux.development.system)
  • Re: shell command wrapper
    ... I have a properietary linux running on my server. ... capable of running under low memory conditions. ... I have a vi editor available on the system. ... You could do one thing different - define alias vi that would call your script and then follow Bill's suggestion. ...
    (comp.os.linux.development.system)
  • Re: shell command wrapper
    ... capable of running under low memory conditions. ... I have a vi editor available on the system. ... A proprietary linux? ... then my wrapper would invoke the actual vi editor after verification. ...
    (comp.os.linux.development.system)