From: Quinn, Bryan (Bryan.Quinn@CooperTools.com)
Date: Wed Apr 05 2006 - 11:22:30 EDT
First off, thanks for all of the replies. It appears that I was working against myself as usual. The problem was my function call beleive it or not. Below is what I found.
get_ip | tee -a $LOG 2>&1 >>> DOES NOT PASS THE VARIABLE
get_ip >>> PASSES THE VARIABLE JUST FINE
Thanks again for all the responses.
Bryan Douglas Quinn
UNIX Support Specialist
HP Certified IT Professional
Cooper Tools - Lexington, SC
803.808.6770
bryan.quinn@coopertools.com
-----Original Message-----
From: hpux-admin-owner@DutchWorks.nl
[mailto:hpux-admin-owner@DutchWorks.nl]On Behalf Of Quinn, Bryan
Sent: Wednesday, April 05, 2006 9:01 AM
To: hpux-admin@dutchworks.nl
Subject: [HPADM] Scripting question - functions
How can I return a variable and it's assigned value from a function? I would like to have function A assign a value to a variable and then return that variable back to the script to be used in function B.
Thanks,
Bryan Douglas Quinn
UNIX Support Specialist
HP Certified IT Professional
Cooper Tools - Lexington, SC
803.808.6770
bryan.quinn@coopertools.com
-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.5/300 - Release Date: 4/3/2006 The preceding e-mail message (including any attachments) contains information that may be confidential, or constitute non-public information. It is intended only for the designated recipient. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. If you have received this e-mail by mistake, please notify the sender immediately by replying to this message and delete this e-mail from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful. -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search) -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.5/300 - Release Date: 4/3/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.5/301 - Release Date: 4/4/2006 The preceding e-mail message (including any attachments) contains information that may be confidential, or constitute non-public information. It is intended only for the designated recipient. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. If you have received this e-mail by mistake, please notify the sender immediately by replying to this message and delete this e-mail from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful. -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:52 EDT