You may need to search for the java executable and put its directory in your PATH. The file java is a starter executable that sets up the environment and selects the right final JAVA executable, as I recall.
If it is missing, go to the HP binary archive and geta copy. https://h20392.www2.hp.com/portal/sw...r=HPUXJAVAHOME You can untar it somewhere under your home dir if you are not a root guy.
Last edited by DGPickett; 06-14-2013 at 12:17 PM..
I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful (2 Replies)
Hi - I am totally new to UNIX so please bear with me...
I run a java program on Win NT server to do file ftp to UNIX server.
I log in, cd, create ftp file on UNIX and quit from my java progam - all works well.
Now I want to execute a script on UNIX.
At the UNIX 'console'/'shell' (!?) you... (1 Reply)
hi everybody,
i have a small unix script and i want to use it with java, so how can i executte unix command with java (if it is possible): in fact i want to use some values returned by this script with java swings.
is it possible (of course everything is possible) but how can i do? thank you in... (4 Replies)
I need to pass an empty space in the command ="java ......... "
as one of the arguments where java calls some java command....
(It accepts it in windows as " ")
Thanks in advance
SD (2 Replies)
Hi all,
I tried to execute the command by 2 ways :
1) Java Runtime class exec method - but the problem there is that it only can execute scripts without arguments(I need with args)
2) the Jtux classs Uprocess- the problem it is not supported by windows and my eclips platform is on... (0 Replies)
Hi,
What is the command to check the user's permission in UNIX ?
e.g: user in UNIX is "myuser"
The result should be number format. e.g: 755, 644, etc...
Thanks.. :) (3 Replies)
Advance Thanks.
(1) I would like to know any unix/Linux command to check EOF char in a file.
(2) Or Any way I can check a file has been reached completely at machine B from machine A. Note that machine A ftp/scp the file to machine B at unknown time. (5 Replies)
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is = ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form my... (0 Replies)
Hi All,
I have been struggling for a week trying to run a unix command from my java program.
the unix command is:
ssh dmdev3@tsapid01-zt3d01 ':> /t3/envs/dmdev3/test/file_list.txt'
when i try to run this command directly on my unix console, it works perfectly.
but when i try it form... (12 Replies)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies
LEARN ABOUT DEBIAN
socklog-check
socklog-check(8) System Manager's Manual socklog-check(8)NAME
socklog-check - checks for the availability of a socklog(8) service.
SYNOPSIS
socklog-check [-v] [unix [address]]
DESCRIPTION
socklog-check attempts to connect to a socklog(8) unix service and reports whether the connection attempt succeeded or not.
It connects to the datagram oriented unix domain socket address, and reports success through the return code. If address is not specified,
socklog-check attempts to connect to /dev/log.
When running services that use the syslog facility under runit's service supervision, socklog-check should be added to the top of the ser-
vice's run script to ensure that no syslog messages are generated until a syslog service is up and running to process the messages, e.g.:
#!/bin/sh
socklog-check || exit 1
exec service_using_syslog
OPTIONS -v verbose. Print verbose message to standard error.
EXIT CODES
On success socklog-check returns 0.
On error, socklog-check prints a message to standard error and exits 111.
SEE ALSO socklog(8), socklog-conf(8), svlogd(8), tryto(1), uncat(1), sv(8), runsv(8), runsvdir(8)
http://smarden.org/socklog/
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
socklog-check(8)