07-09-2012
Quote:
where strShellCmd contains the entire unix command as a single string
Let's see that line too.
First impression is that the command would be better placed in Shell Script.
What (in words) are you expecting the command to do. It appears to just execute a null command on a remote server.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: QUartz Ite
2 Replies
2. UNIX for Dummies Questions & Answers
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)
Discussion started by: CJ Walt
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: mips
4 Replies
4. Shell Programming and Scripting
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)
Discussion started by: shweta_d
2 Replies
5. Programming
I have a java classpath running inside of a unix shell script. During my testing it will error with lines that show an example like this below.
java.io.FileNotFoundException error
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:129),
... (2 Replies)
Discussion started by: mmcds
2 Replies
6. Programming
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)
Discussion started by: katzs500
0 Replies
7. Programming
Hi,
when i compile my java code in UNIX using javac, the class file is getting created. But when i try to run the code using java - classpath command, i get the following error.
----------------------------------------
/u/up11/sample/request:>java -classpath /u/up11/sample/request... (0 Replies)
Discussion started by: satish2712
0 Replies
8. UNIX for Advanced & Expert Users
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)
Discussion started by: madhu_sharan
0 Replies
9. UNIX for Advanced & Expert Users
Guys,
i need to check whether java file can be executed in my current unix system or not.
Can anyone please help me to get the correct command to check this.
My Unix system is HP-UX.
Thanks, (1 Reply)
Discussion started by: AraR87
1 Replies
10. Shell Programming and Scripting
Team,
I have multiple batchjobs running in VM, if I do ps -ef |grep java or tomcat I am getting multiple process list.
How do I get my exact tomcat process running and that is unique? via shell script? (4 Replies)
Discussion started by: Ghanshyam Ratho
4 Replies
fingerd(1M) fingerd(1M)
NAME
fingerd - remote user information server
SYNOPSIS
DESCRIPTION
is the server for the RFC 742 Name/Finger protocol. It provides a network interface to which gives a status report of users currently
logged in on the system or a detailed report about a specific user (see finger(1)). The Internet daemon executes when it receives a ser-
vice request at the port listed in the services data base for ``finger'' using ``tcp'' protocol; see inetd(1M) and services(4).
To start from the configuration file must contain an entry as follows:
Once a remote host is connected, reads a single ``command line'' terminated by a carriage-return and line-feed. It uses this command line
as the arguments to an invocation of sends the output of to the remote host and closes the connection.
If the command line is null (contains only a carriage-return and line-feed pair), returns a report that lists all users logged in on the
system at that moment.
If a user name is specified on the command line (for example, user<CR><LF>), the response lists more extended information for only that
particular user, whether logged in or not. See finger(1) for the details of this extended information.
If is run with the option, it allows remote user names on the command line (for example, user@host<CR><LF>). Otherwise, if the command
line contains a remote user name, prints the error message and closes the connection.
AUTHOR
was developed by the University of California, Berkeley and HP.
SEE ALSO
finger(1), inetd(1M), services(4),
RFC 742 for the Name/Finger protocol.
fingerd(1M)