Hello
I want to save the value in a variable in this script:
#!/bin/sh
filename=$1
var= $filename | sed 's/\([A-Z]\)/ \1/g';
return var;
(Firstable, I am not sure if it is correct), and after thar, get this value and use it in my Java program, like this:
Process s = Runtime.getRuntime().exec("./CreateTitle.sh "+filename);
OutputStream exitVal = s.getOutputStream();
System.out.println("Process exitValue: " + exitVal.toString());
I think I am soing something wrong, because in the last sysout
, I don't get the wished result, but this one:
Process exitValue: java.io.BufferedOutputStream@3e25a5
Any help? Thanks in advance