LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-12-2005, 11:54 AM   #1
Iriel
Member
 
Registered: Sep 2003
Location: Stow, OH USA
Distribution: Fedora Core 4, Knoppix, openSUSE 10
Posts: 44

Rep: Reputation: 15
Question Shell env question


Let me explain this first:

At work, a consultant gave us a set of scripts to flush out a folder of temporary files in a (perl) shopping cart and a shell script that restarts the server if it crashes.

The problem isn't that but that my boss needs to understand how everything works before he'll trust any of it. I don't really need an explaination of this as much as I just need to know if this shell command does what I think it does.

Code:
env PERL_SIGNALS=unsafe /usr/local/FOO/bin/BAR
Where BAR is a file which will restart the system (just shopping cart software, not an actuall reboot), I believe that this tells the shell that BAR is the only file that can run in 'unsafe' mode: thus being able to interrupt the normal I/O chain to restart the perl server, yet the rest of perl runs in 'safe' mode.

I'm not an expert, but if anyone can let me know if I'm correct, please let me know so we can get our site working again. Thanks.
 
Old 10-12-2005, 12:38 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You'd rather ask this to the programming forum as this is not really Solaris specific
All I can tell is that this command is passing a variable to the BAR command through the environment.
The rest is perl, which I'm not an expert in, and never will
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron and shell env variables lt_wentoncha SUSE / openSUSE 5 07-16-2005 01:20 PM
C shell and env $PATH vikinnun Programming 1 11-10-2004 09:02 PM
question about Linux env ashley75 Linux - General 1 10-21-2004 09:00 AM
shell question supervillan Linux - Newbie 4 10-20-2004 06:50 AM
bash shell env var script ejbest Linux - Newbie 4 09-29-2004 10:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration