I'm using linux too (but relative old RH 7.3) and I thought using OpenPKG wersions of softwares would give me a longer updated live. If my thinking is correct, I would like to use OpenPKG version of perl and not the RH73 one.
Could I write a small script that I name /usr/bin/perl with something like: #/bin/sh if [ OPKG-ENV_NOT_SET ]; then /opkg/etc/rc --eval all env fi /opkg/bin/perl $* Also I don't know how to check if OPKG_ENV_NOT_SET. Should grabing opkg in $PATH be enouth ? Thanks, Alex Citando Bill Campbell <[EMAIL PROTECTED]>: > On Thu, Aug 05, 2004, Alexander Belck wrote: > >Some perl scripts use #!/usr/bin/perl > > > >Could I just symlink ln -s /opkg/bin/perl /usr/bin/ ? > > I've done this with links to /usr/local/bin/perl with reasonable > success. Most of the systems we use already have /usr/bin/perl > (e.g. they're Linux). > > >If the perl script is executed by a user that DO NOT have previosly run > > > >/opkg/etc/rc --evall all env > > This depends on whether the perl scripts make system() calls that depend on > the PATH that's set (and spelling --eval correctly :-). Most of the > scripts I write check to see if the OpenPKG environment has been set, and > if it hasn't, they set it explicitly. > > Bill > -- > INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC > UUCP: camco!bill PO Box 820; 6641 E. Mercer Way > FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 > URL: http://www.celestial.com/ > > When only cops have guns, it's called a ``police state''. > -- Claire Wolfe, "101 Things To Do Until The Revolution" > ______________________________________________________________________ > The OpenPKG Project www.openpkg.org > User Communication List [EMAIL PROTECTED] > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]