Actually I looked closer at my runvista script, and I think it does
trap ^C.  I'll append it below...

Kevin

On 11/3/05, Kevin Toppenberg <[EMAIL PROTECTED]> wrote:
> I am having a difficult time following this thread.  It seems that
> Greg is demonstrating on a Cache system, and Bhaskar is answering with
> GTM examples.  I don't understand how these two intersect on this
> issue.  Anyway, I'm glad we have great minds on this list to sort
> these matters out....
>
> Here is the .bashrc that I use for my users to log in.  I don't have
> any method to trap ^C.
>
> Can someone suggest an appropriate trap, and point out any potential
> security issues?  I don't want users to be able to drop to the GTM
> prompt.
>
> Thanks
> Kevin
>
>
> [EMAIL PROTECTED] vista]# cat .bashrc
> # .bashrc
>
> # User specific aliases and functions
>
> # Source global definitions
> if [ -f /etc/bashrc ]; then
>         . /etc/bashrc
> fi
>
> #set up infinate loop
> while [ 1 -eq 1 ]
> do
>   sh runvista ^ZU
> done
>
> exit
>
>

[EMAIL PROTECTED] kdt0p]$ cat runvista
#!/bin/bash

echo " "
echo "GT.M VistA Startup Script"

. /var/local/OpenVistA_UserData/setup_vista_env

echo "Entering GT.M system now... "
#-----------------------------

stty susp \000

if [ $# -gt 0 ]
  then
    echo "Automatically launching program: $1"
    $gtm_dist/mumps -r $1
  else
    $gtm_dist/mumps -dir
fi
#$gtm_dist/mumps -dir

echo " "
echo "Leaving GT.M, returning to Linux..."
echo " "


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to