03-08-2010
Hi,
Thanks for the suggestion. It worked i.e the export variable value is being accessed by a Java Program.
Now, I need to tell you the actual scenario of mine. As said, script will trigger the continuous build. As long as my CB runs in the same machine, I don't have any issues. To improve the speed, CB are triggered from Shell script so that those will be run in multiple remote systems (i.e. The tests are devided between the systems for the quick test results). Now, Is there at all a solution to pass some variable from Shell script which can be access by a Java Program which is running in a different system?
I'm sorry if I've confused you.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi frind,
i="1"
while
do
echo "i is $i"
data_file=$HYP_ROOT/import/efcextr$i.txt
echo "$data_file"
i=`expr $i + 1`
done
This is woring finly in ksh but not in ksh.
in ksh it showing error
i=1: Command not found
i: Undefined variable
Kindly help me ...why it is showing the error... (1 Reply)
Discussion started by: deep_kol
1 Replies
2. Programming
i have created a script to insert 100K rows into mysql db.
But the forst line where i declare the variable is giving error. I am new to mysql. Can anyone help me in this?
the script is
======================================
DECLARE
c INT(10) := 54;
BEGIN
WHILE c <... (4 Replies)
Discussion started by: amitranjansahu
4 Replies
3. Shell Programming and Scripting
Hi
I have the following script :
#!/bin/ksh
compare()
{
cat $1>t1
cat $2>t2
cy1=`cut -f13 -d'Ç' t1`
cy2=`cut -f13 -d'Ç' t2`
print "cy1 = $cy1"
print "cy2 = $cy2"
if
then
echo "yes"
else
echo "no"
fi
} (6 Replies)
Discussion started by: bittoo
6 Replies
4. Shell Programming and Scripting
I recently installed Cygwin on my windows vista to practice on Linux\unix commands.
I am unable to do a simple task of declaring variables on the command prompt
I am trying:
$ vech=Bus
$ echo $vech
bash: vech : command not found
What am I missing? Do i need to add something to .bashrc?
... (1 Reply)
Discussion started by: erora
1 Replies
5. UNIX for Dummies Questions & Answers
hi to all,
i am trying to declare a variable as an integer in unix shell script. i search the web for a way to do it but it doesnt work.
i tried "define -i" and "declare" but that doesnt work.
if somebody knows another way to declare a variable as integer please help me.
thank you (2 Replies)
Discussion started by: omonoiatis9
2 Replies
6. Shell Programming and Scripting
what I'm trying to do is ... need to drop tables w/ names like
ABC_NY_2001
ABC_ORD_2001
ABC_TX_2001
ABC_CL_2001
For this, I want to write a query "DROP TABLE ABC_var_2001".
now "var" should be either NY, ORD, TX or CL.
I'm new to programming so don't know how to create a variable w/ OR... (3 Replies)
Discussion started by: ramsowji
3 Replies
7. Shell Programming and Scripting
I am trying to declare a variable like this
#!/bin/csh -f
set c_arg = $a $b $c
However, since i need it to declare before declaring $a ,$b or $c.
As of now i am getting an error which says $a not defined.
Is it possible to define a variable c_arg w/o interpreting the values $a $b $c (2 Replies)
Discussion started by: animesharma
2 Replies
8. Shell Programming and Scripting
how can i declare variable in perl.
for BLOCK in /sys/block/emcpow* (3 Replies)
Discussion started by: learnbash
3 Replies
9. UNIX for Beginners Questions & Answers
Hi Gurus,
Is there a way to call a variable inside a function anywhere within the script?
Thanks.
BR,
Ernesto (2 Replies)
Discussion started by: ernesto
2 Replies
10. Shell Programming and Scripting
If I am running a bash command, and some awk getting the ethernet adapter on the local machine. It works fine. But if I will run it from the remote, it is EMPTY on echo and throwing error in grep.
Thank you
This work perfectly fine
$ f=`/sbin/ip a|grep 127.127 | awk '{print $NF }' ` ; ip... (2 Replies)
Discussion started by: kenshinhimura
2 Replies
LEARN ABOUT DEBIAN
jython
JYTHON(1) General Commands Manual JYTHON(1)
NAME
jython - Python seamlessly integrated with Java
SYNOPSIS
jython [ -i ] [ -S ] [ -v ] [ -Dproperty=value ... ] [ -Wargument ]
[ -Ecodec ] [ -Qargument ]
[ -jar jar | -c cmd | file | - ] [ script-args ]
jython [ --help | --version ]
DESCRIPTION
Jython is an implementation of the high-level, dynamic, object-oriented language Python seamlessly integrated with the Java platform. The
predecessor to Jython, JPython, is certified as 100% Pure Java.
Jython is complementary to Java and is especially suited for the following tasks:
Embedded scripting:
Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add
functionality to the application.
Interactive experimentation:
Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This
allows programmers to experiment with and debug any Java system using Jython.
Rapid application development:
Python programs are typically 2-10X shorter than the equivalent Java program. This translates directly to increased programmer pro-
ductivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during develop-
ment and in shipping products.
To make a jython script executable on your system you can add the following line to the top of the file:
#!/usr/bin/env jython
You will also need to add execute permissions to the script using chmod(1). Note that #!/usr/bin/jython will not work; you must use
#!/usr/bin/env jython. This is because /usr/bin/jython is a script itself, not a compiled binary.
OPTIONS
A summary of options is included below.
-i Continue running Jython interactively after running the given script, and force prompts even if standard input doesn't appear to be
a terminal.
-S Don't imply import site on initialisation.
-v Trace import statements on error output.
-Dproperty=value
Set the Jython property property to value; see jython.conf(5) for details of available properties.
-Wargument
Warning control. The full form of argument is action:message:category:module:line. Trailing empty fields may be omitted. Multiple
-W options may be given. See documentation of the warnings module for details.
-Ecodec
Set the encoding used to read module source files from disk.
-Qargument
Division control. See PEP 239 for details. Valid arguments are old, new, warn and warnall.
-jar jar
The program to run is read from the file __run__.py in the specified jar archive.
-c cmd The program to run is passed as the cmd string. This option terminates the options list.
file The program to run is the script file.
- The program to run is read from standard input (default behaviour). Interactive mode is used if running on a tty. This flag allows
you to pipe a file into Jython and have it be treated correctly.
script-args
Command-line arguments to pass to the Jython script in sys.argv[1:].
--help Print a usage message and exit.
--version
Print the Jython version number and exit.
ENVIRONMENT VARIABLES
JAVA (default: /usr/bin/java)
The Java interpreter to use when running Jython.
JAVA_OPTIONS (default: empty)
Options to pass to the Java interpreter when running Jython.
SEE ALSO
jythonc(1), jython.conf(5).
If the Debian package jython-doc is installed, full documentation from the Jython authors will be available in /usr/share/doc/jython-
doc/html/.
AUTHOR
This manual page was prepared by Ben Burton <bab@debian.org> for the Debian GNU/Linux system (but may be used by others). It is based upon
the official Jython documentation.
July 7, 2001 JYTHON(1)