[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] about trap
****** message to minivend-users from zb <zb@bisp.com> ******
Mike:
Thank you very much! Besides define ftis in minivend.cfg, can I
set it in [perl] ...[/perl] for temporary control without restart
minivend?
zb
Mike Heins wrote:
>
> ****** message to minivend-users from Mike Heins <mike@minivend.com> ******
>
> Quoting zb (zb@bisp.com):
> > ****** message to minivend-users from zb <zb@bisp.com> ******
> >
> > Hi list:
> >
> >
> > I use the following code
> > [perl]
> > return 1 if -e "filename";
> > [/perl]
> >
> > the error.log says
> > Safe: -e trapped by operation mask at (eval 102) line 3.
> >
> > As to minivend.cfg SafeUntrap is default to "ftfile sort", which
> > shoud allow file exists test.
>
> Nope. That allows "-f".
>
> > how can I use the file exists test?
> >
>
> Try ftis or :filesys_read, which allows all of the tests. This
> is all documented in "perldoc Opcode".
>
> --
> Mike Heins http://www.minivend.com/ ___
> Internet Robotics |_ _|____
> Research is what I'm doing when 131 Willow Lane, Floor 2 | || _ \
> I don't know what I'm doing. Oxford, OH 45056 | || |_) |
> -- Wernher Von Braun <mikeh@minivend.com> |___| _ <
> 513.523.7621 FAX 7501 |_| \_\
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list