Search Results

Search: Posts Made By: madhu_sharan
12,698
Posted By madhu_sharan
@methyl yeah you are right about the...
@methyl

yeah you are right about the tokenizing part. Also, bash command is requried as the primary parameter while running commands with more than two arguments.

Anyways can you please...
12,698
Posted By madhu_sharan
@all i have found out the solution. Though...
@all

i have found out the solution. Though the shell command was right, the way i called it from JAVA caused the issue. The correct java code would be as shown below.

ProcessBuilder...
12,698
Posted By madhu_sharan
@jlliagre...
@jlliagre (https://www.unix.com/members/302033658.html)

yes. it does clear the file. BUT only when i run from the unix console.
When the same is attempted from a java programme, it fails throwing...
12,698
Posted By madhu_sharan
private boolean executeShell(String strShellCmd)...
private boolean executeShell(String strShellCmd) {
try {
procTemp=runEnv.exec(strShellCmd);

//read the output from shell console
BufferedReader...
12,698
Posted By madhu_sharan
i am sorry. was a bit confused on the correct...
i am sorry. was a bit confused on the correct location of the topic.
rest assured it wont happen again. :)
3,248
Posted By madhu_sharan
running unix command from java
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...
12,698
Posted By madhu_sharan
[SOLVED] running unix command from java
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...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy