I believe I sent in an example script that included traps. I believe it was
about a year ago, I have moved to another job so do not have access to the
script to send it again.

Thanks

Marc Aylesworth

C3I Associates 

AFRL/IFSE

Joint Battlespace Infosphere Team

525 Brooks Rd

Rome, NY 13441-4505

Tel:315.330.2422

Fax:315.330.7009

Email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Toppenberg
Sent: Thursday, November 03, 2005 10:04 AM
To: [email protected]
Subject: Re: [Hardhats-members] Re: A troublesome and concerning error.....

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to