12-02-2010
so to source a file, i need two dots??? i had one dot before and it did not work
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having an issue when I export within my program. I'm getting the variable name, not the variable value. I have a configuration file (config.txt) that has the values of the variables set as so:
set -a
export ARCHIVEPOSourceDir="/interfaces/po/log /interfaces/po/data"
export... (2 Replies)
Discussion started by: ParNone
2 Replies
2. Shell Programming and Scripting
Hi Guys,
I am using the korn shell. I have an environments files where I have defined a variable
export START_TIME=060000
export END_TIME=220000
I source this environments file into one of my scripts.
The problem is that when I try to use this variable, I cannot get to use this variable as a... (2 Replies)
Discussion started by: zeus101
2 Replies
3. Shell Programming and Scripting
How to export variable from one script to other?
Can anybody give me syntax for that?
Thanks (2 Replies)
Discussion started by: navi
2 Replies
4. Shell Programming and Scripting
simple question:
for example if i use:
export http_proxy=proxy:8080
and i have this script:
while true; do
....
lynx Google
;;
wget The UNIX and Linux Forums - Learn UNIX and Linux from Experts
;;
...
esac
done
So i must "export http_proxy=proxy:8080" before any lynx and wget... (4 Replies)
Discussion started by: aspire
4 Replies
5. Shell Programming and Scripting
Greeting to all of you!
I've small issue related to the variable which we are setting and exporting through scripts, in one of the script there are some variable used but I am not abel to get the detail as where they are set. I tried finding the detail with the help of env but no luck.
... (2 Replies)
Discussion started by: kumarmani
2 Replies
6. Shell Programming and Scripting
Hi, Unix Gurus,
I have a problem need help. I have a script to generate environment variable code same as following:
oracle_sid=abcd
export oracle_sid
when I execute this code with command ./script_nane it succeeded.
when I try to find it with env command or echo $oracle_sid, it does not show... (5 Replies)
Discussion started by: ken002
5 Replies
7. Shell Programming and Scripting
Hello Guys,
I need you help to do one task
I have script which is actually doing to fetch the code of any repository in svn
for e.g.:- I can use svn to checkout the repository but I want to checkout the repository for particular tag
like svn co <url>/svn/repo/<tag-name>
and this... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies
8. Shell Programming and Scripting
I have a requirement to change user inside a shell script and execute group of commands. I have done it many times earlier but never came across the issue with exporting variables. Strangely if a var is exported afetr su, it is not working where as if it is does outside su, it works. Another issue... (8 Replies)
Discussion started by: sasiharitha
8 Replies
9. Shell Programming and Scripting
I am relatively new to exporting variables, and I just can't seem to make this count work. What I have is the following:
TOTAL=$($IMAGELIST -backupid $IM -U |gawk '{print $5}' |tail -1)|gawk '{print $6}'
RESTORED=$($BPDBJOBS -most_columns -jobid $JOBS |cut -f15 -d,) |gawk '{print $6}'
export... (7 Replies)
Discussion started by: newbie2010
7 Replies
10. UNIX for Advanced & Expert Users
Hi,
Please find my code below.
ps -xef | grep 14766 | awk 'BEGIN{X="java_home=";X="weblogic_home="}
{for(i=1;i<=NF;i++){if($i ~ /-Dplatform\.home|java$/){split($i,P,"=");s=P?P:$i;print X""s}}}'
echo "java_home="$java_home
echo "weblogic_home="$weblogic_home
Output:
Why does... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT DEBIAN
sb2-logz
sb2-logz(1) sb2-logz man page sb2-logz(1)
NAME
sb2-logz - sb2 log postprocessing tool
SYNOPSIS
sb2-logz [options] < logfile
DESCRIPTION
sb2-logz reads logs created by scratchbox2 and writes summaries (the log files can be really huge, and manually digging out information
from them might be a time-consuming task).
Logs are produced when sb2 is executed with -d (debug) or -L options (e.g. "-L info")
OPTIONS
-b no blacklist: do not ignore log lines from functions like __xstat() (there is a built-in blacklist, which tries to minimize "noise"
caused by various libraries and scratchbox2 itself)
-B fn1,fn2,..
blacklist funcions fn1,fn2,..: ignore lines generated by the listed library calls.
-d level
debug mode, for debugging the script itself.
-h show help text.
-i print details about 'disabled' pathnames (unmodifed paths, because mapping was momentarily disabled)
-l print long details (affects output of -i,-m,-r,-p etc)
-m print details about mapped pathnames (src->dest)
-N print all 'notice' messages
-p print details about passed pathnames ('passed path' = not mapped)
-r print reversed mappings (dest->src)
-s print process statistics
-v verbose mode, prints dots while reading input etc.
-P file.dot
write process diagram to file.dot (postprocess it with 'dot', e.g. 'dot -Tpdf file.dot >file.pdf'
-E file.dot
write execution diagram to file.dot (postprocess it with 'dot', e.g. 'dot -Tpdf file.dot >file.pdf'
-A acct-file
Read process accounting information from acct-file (enhances output of -P and -E)'
BUGS
Option -A requires an accounting log, which has to be activated separately. Generation of accounting information typically requires super-
user privileges (or CAP_SYS_PACCT capability on Linux). This is an system-level restriction, and not fault of scratchbox2. However,
sb2-logz has some limitations: Correlating information from the accounting log is based on process ids, and the heuristics may fail if
there were really many processes; The -P, -E and -A options may be less useful for longer runs. Best results are achieved if process
accounting is switched on just before the scratchbox2 session is created, and switched off afterwards - and there is nothing else running
on the host at the same time.
SEE ALSO
sb2(1), sb2-config(1), sb2-init(1), acct(2), dot(1) ( dot belongs to the graphviz package)
AUTHOR
Lauri Aarnio
2.2 17 December 2010 sb2-logz(1)