Sponsored Content
Top Forums Shell Programming and Scripting Setting ENV variables in PERL Post 302891722 by vbe on Friday 7th of March 2014 12:39:24 PM
Old 03-07-2014
Exporting them?
 

10 More Discussions You Might Find Interesting

1. Solaris

setting env

I am trying to set up my compiler, but when I go to look for gcc it not found but I get a message that stayed (/usr/oasys/bin) and when I go into the dir to set my env the following is type cp : cannot creat //pref/.environ: no such file or directory and I input ./setenv PATH=... (3 Replies)
Discussion started by: alsande
3 Replies

2. Shell Programming and Scripting

Some env setting is causing the script not to work ?

Not sure what has changed in the Unix environment. The following script which was working is now not working. #!/usr/bin/ksh # ----------------------------------------------------------------------------- # File: monitor_db.sh # #... (1 Reply)
Discussion started by: uuser
1 Replies

3. Shell Programming and Scripting

Implications of setting sensitive data in ENV

Hello people, In shell scripts if some sensitive data is set into the env so that it is available to other scripts called within those scripts -- Are there are security implications ? -- I believe the scope of those environment variables ends with the execution of the script. -- I see that... (4 Replies)
Discussion started by: tipsy
4 Replies

4. AIX

edit env. setting

hi eveybody, i m trying to set acl using acledit command in AIX box but wat im gettung is 3002-100 acledit: EDITOR environment variable not set can anyone help me out how 2 set editor.................... thanks in advance (4 Replies)
Discussion started by: rrlog
4 Replies

5. Red Hat

Help with csh env setting in Fedora 8

Hi there, How can I change bash to csh when starting a terminal, and set some aliases for csh? I can't find such files like .cshrc in my home directory. Thanks a lot (1 Reply)
Discussion started by: dustinwang2003
1 Replies

6. UNIX for Dummies Questions & Answers

Setting env variables using script

Hi, I wrote two small scripts to set env variables in a shell. java_env.csh #!/bin/csh -fn setenv JAVA_HOME '/scratch/software/jdk1.5.0_11' setenv PATH $PATH':'$JAVA_HOME'/bin' and run it using csh ./java_env.csh But the env variables are not set. I tried running each line on the... (5 Replies)
Discussion started by: NoviceAmod
5 Replies

7. Shell Programming and Scripting

Issue with a Unix script Env setting

Hi, I have the below script #------------------------------------------------------------------------------ #Set up environment variables #------------------------------------------------------------------------------ SCRIPTS_DIR=/remedy/scripts/ServerVolumeBilling... (3 Replies)
Discussion started by: anilvaranasi_02
3 Replies

8. Shell Programming and Scripting

tcsh env setting using shell script

Hi All, I have made a file file usercreate.sh & it has to run in tcsh env & needs some path to be set. my script is as below. ########################## #!/bin/csh setenv PATH "/usr/lib/java/class" setenv LD_LIBRARAY_PATH ########################### but when i am ruuning my script... (1 Reply)
Discussion started by: ajaincv
1 Replies

9. Shell Programming and Scripting

Setting up env variable in ksh

I am facing a very strange issue. I have script in ksh with #!/bin/ksh as shebang. This script has function which sets the env variable before running other functions of the script. by set_up_env() { CONFIG_FILE="/opt/app/tools/deepmarking/latestVersion/script/UploadEnv" if then ... (7 Replies)
Discussion started by: Tuxidow
7 Replies

10. Shell Programming and Scripting

Shell Script for Setting Env Variables

Hello All. Good Afternoon. I need one small help regarding setting of env variables for a particular host by getting it from the DB. For ex : 1. I am using LOCALHOST. 2. When I run a ./hostset.sh it should pick up the Oracle home details from associated DB and set it. Please... (1 Reply)
Discussion started by: PavanPatil
1 Replies
Exporting Topologies to XML.(3) 			     Hardware Locality (hwloc)				   Exporting Topologies to XML.(3)

NAME
Exporting Topologies to XML. - Functions int hwloc_topology_export_xml (hwloc_topology_t topology, const char *xmlpath) int hwloc_topology_export_xmlbuffer (hwloc_topology_t topology, char **xmlbuffer, int *buflen) void hwloc_free_xmlbuffer (hwloc_topology_t topology, char *xmlbuffer) void hwloc_topology_set_userdata_export_callback (hwloc_topology_t topology, void(*export_cb)(void *reserved, hwloc_topology_t topology, hwloc_obj_t obj)) int hwloc_export_obj_userdata (void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length) int hwloc_export_obj_userdata_base64 (void *reserved, hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length) void hwloc_topology_set_userdata_import_callback (hwloc_topology_t topology, void(*import_cb)(hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length)) Detailed Description Function Documentation int hwloc_export_obj_userdata (void *reserved, hwloc_topology_ttopology, hwloc_obj_tobj, const char *name, const void *buffer, size_tlength) Export some object userdata to XML. This function may only be called from within the export() callback passed to hwloc_topology_set_userdata_export_callback(). It may be invoked one of multiple times to export some userdata to XML. The buffer content of length length is stored with optional name name. When importing this XML file, the import() callback (if set) will be called exactly as many times as hwloc_export_obj_userdata() was called during export(). It will receive the corresponding name, buffer and length arguments. reserved, topology and obj must be the first three parameters that were given to the export callback. Only printable characters may be exported to XML string attributes. If a non-printable character is passed in name or buffer, the function returns -1 with errno set to EINVAL. If exporting binary data, the application should first encode into printable characters only (or use hwloc_export_obj_userdata_base64()). It should also take care of portability issues if the export may be reimported on a different architecture. int hwloc_export_obj_userdata_base64 (void *reserved, hwloc_topology_ttopology, hwloc_obj_tobj, const char *name, const void *buffer, size_tlength) Encode and export some object userdata to XML. This function is similar to hwloc_export_obj_userdata() but it encodes the input buffer into printable characters before exporting. On import, decoding is automatically performed before the data is given to the import() callback if any. This function may only be called from within the export() callback passed to hwloc_topology_set_userdata_export_callback(). The function does not take care of portability issues if the export may be reimported on a different architecture. void hwloc_free_xmlbuffer (hwloc_topology_ttopology, char *xmlbuffer) Free a buffer allocated by hwloc_topology_export_xmlbuffer() int hwloc_topology_export_xml (hwloc_topology_ttopology, const char *xmlpath) Export the topology into an XML file. This file may be loaded later through hwloc_topology_set_xml(). Returns: -1 if a failure occured. Note: See also hwloc_topology_set_userdata_export_callback() for exporting application-specific userdata. Only printable characters may be exported to XML string attributes. Any other character, especially any non-ASCII character, will be silently dropped. int hwloc_topology_export_xmlbuffer (hwloc_topology_ttopology, char **xmlbuffer, int *buflen) Export the topology into a newly-allocated XML memory buffer. xmlbuffer is allocated by the callee and should be freed with hwloc_free_xmlbuffer() later in the caller. This memory buffer may be loaded later through hwloc_topology_set_xmlbuffer(). Returns: -1 if a failure occured. Note: See also hwloc_topology_set_userdata_export_callback() for exporting application-specific userdata. Only printable characters may be exported to XML string attributes. Any other character, especially any non-ASCII character, will be silently dropped. void hwloc_topology_set_userdata_export_callback (hwloc_topology_ttopology, void(*)(void *reserved, hwloc_topology_t topology, hwloc_obj_t obj)export_cb) Set the application-specific callback for exporting userdata. The object userdata pointer is not exported to XML by default because hwloc does not know what it contains. This function lets applications set export_cb to a callback function that converts this opaque userdata into an exportable string. export_cb is invoked during XML export for each object whose userdata pointer is not NULL. The callback should use hwloc_export_obj_userdata() or hwloc_export_obj_userdata_base64() to actually export something to XML (possibly multiple times per object). export_cb may be set to NULL if userdata should not be exported to XML. void hwloc_topology_set_userdata_import_callback (hwloc_topology_ttopology, void(*)(hwloc_topology_t topology, hwloc_obj_t obj, const char *name, const void *buffer, size_t length)import_cb) Set the application-specific callback for importing userdata. On XML import, userdata is ignored by default because hwloc does not know how to store it in memory. This function lets applications set import_cb to a callback function that will get the XML-stored userdata and store it in the object as expected by the application. import_cb is called during hwloc_topology_load() as many times as hwloc_export_obj_userdata() was called during export. The topology is not entirely setup yet. Object attributes are ready to consult, but links between objects are not. import_cb may be NULL if userdata should be ignored during import. Note: buffer contains length characters followed by a null byte (''). This function should be called before hwloc_topology_load(). Author Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. Version 1.7 Sun Apr 7 2013 Exporting Topologies to XML.(3)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy