03-24-2009
Yes, Java does work okay....it actually prints the O/P on console of my out.println() and then it hangs.
Thanks,
Sam
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I need to run a shell script from a TCL script,the shell script in trun will run a python script
1.Tcl script
set filename "./GopiRun.sh"
2.GopiRun.sh
python ./psi.py $MYSB/test_scripts/delivery/gpy1.py
3.I have my gpy1.py script.
Here the problem i am facing is on running... (0 Replies)
Discussion started by: nathgopi214
0 Replies
2. Shell Programming and Scripting
Hello All,
Hope all is well. I am newbie to Shell programming and when I execute simple Java program from Shell script it does not return the control to the command prompt ... it hangs. When I hit "ENTER" or any other command , I get the control back. My java code has nothing but... (1 Reply)
Discussion started by: samshaw
1 Replies
3. Shell Programming and Scripting
I'm trying to execute a script from within my java code. The execution of the script is over(it's pid is no more), but java is stuck on waitFor() method of the shell script process!. And yes, I'm reading output and error streams in 2 separate threads. Yes, they are being joined at the end(after... (0 Replies)
Discussion started by: pavanlimo
0 Replies
4. Shell Programming and Scripting
HI,
I have a strange problem. A shell script that runs fine on solaris. when i ported to linux, it started hanging.
here is the core of the script
CFG_FILE=tab25.cfg
sort -t "!" -k 2 ${CFG_FILE} | egrep -v "^#|^$" | while IFS="!" read a b c
do
#echo "jobs output"
#jobs
#echo "jobs... (13 Replies)
Discussion started by: aksaravanan
13 Replies
5. Shell Programming and Scripting
I have a master shell script which calls some 40 shell scripts. All the shell scripts calls a sql file which executes some sql statements.
I run these scripts in parallel such that it saves me time. When i executed them i saw some strange behavior.
Firstly, I found that some scripts among the 40... (1 Reply)
Discussion started by: sushi
1 Replies
6. Red Hat
Hi,
I am trying to call a bash script from a java file.
Code to call bash script will look like:
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("mybashfile.sh");
It is succesfully calling the bash file.
I am using simple rm commands in the script to remove... (0 Replies)
Discussion started by: lakshman.forums
0 Replies
7. Shell Programming and Scripting
Dear all,
I have a bash script that mounts a number of samba shares, but one particular mount command makes it hang. Strangely, the same command works when executed directly from the command line:
sudo mount -t cifs //name-of-share /media/FTPpublic -o username=myname
asks for the password... (8 Replies)
Discussion started by: slouse
8 Replies
8. Shell Programming and Scripting
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
Discussion started by: da1
5 Replies
9. UNIX for Beginners Questions & Answers
I can't seem to get this right. I've tried it every way imaginable using every trick I see on stackexchange and such. No luck. So nothing major here, something like:
#!/bin/bash
SEARCH="ARG1 ARG2 '((^EXACT$)|(.*InTheMiddle*)|(^AtBeginning*))'"
java -cp /my/class/path MyClassName $SEARCH... (3 Replies)
Discussion started by: stonkers
3 Replies
10. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT DEBIAN
jython.conf
JYTHON.CONF(5) File Formats Manual JYTHON.CONF(5)
NAME
jython.conf - Jython registry for system-wide options
DESCRIPTION
When running jython(1) or jythonc(1), a number of properties may be set to customise Jython's behaviour. Properties can be assigned values
in any of the following four ways. This list is arranged from lowest to highest priority; thus for instance a property set in a user's
personal registry will override the same property set in the system-wide registry.
Java system properties
Jython options may be set in the standard Java system properties. However, since the jython and jythonc startup scripts take
responsibility for starting the Java interpreter, it is unlikely that you will use this method of Jython configuration.
Jython system-wide registry
The system-wide registry is the file /etc/jython/jython.conf. It contains a number of lines of the form property=value. Lines that
are empty or that begin with a hash (#) are ignored.
User's personal registry
The user's personal registry is the file ~/.jython. Its format is the same as for the system-wide registry.
Command-line options
Properties may be specified when running jython or jythonc at the command-line. They are set using command-line options of the form
-Dproperty=value.
PROPERTIES
The following properties may be set in the Jython registry. Other less used properties are also available; see the comments in the default
system-wide registry for further details.
If a property is marked (auto), the jython and jythonc startup scripts will attempt to set this property automatically, although it can
still be overridden in the system or user registry or on the command-line.
python.cachedir (auto)
The directory to use for caches (currently just package information). This directory must be writable by the user. If the direc-
tory is an absolute path then it is used as given; otherwise it is interpreted as relative to the root Jython directory
(/usr/share/jython/).
python.console
The name of the console class to use when running Jython from the command prompt. An alternative console class that emulates GNU
readline can be specified using this property.
python.jythonc.classpath (auto)
Extensions to the Java property java.class.path for use with jythonc. This is used to put extra classes on your Java compiler's
classpath (and the core Java classes as well if your Java compiler requires them).
python.jythonc.compiler (auto)
The Java compiler to use with jythonc when turning generated Java code into Java class files. This should be the absolute path to a
Java compiler, or the name of a compiler on your standard PATH.
python.jythonc.compileropts
Options to pass to the Java compiler when using jythonc.
python.path (auto)
The path on which Jython will look for additional python modules when importing. This variable has a similar function to CPython's
PYTHONPATH environment variable.
python.security.respectJavaAccessibility
Normally, Jython can only provide access to public members of classes. However if this property is set to false and you are using
Java 1.2 then Jython can access non-public fields, methods and constructors.
python.verbose
Sets the verbosity level for informative messages. All messages with at least the specified severity will be displayed. Valid val-
ues in order of increasing verbosity are error, warning, message, comment and debug.
SEE ALSO
jython(1), jythonc(1).
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.
September 2, 2001 JYTHON.CONF(5)