10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a shell script (script.sh) in which we are calling java code which asks for
Username:
Password:
for authentication purpose
currently we are passing the credential manually and run the script.
but I am trying
echo -e "user_id\npassword" | script.sh
but its not... (1 Reply)
Discussion started by: rakeshtomar82
1 Replies
2. Solaris
Hello Experts,
There is a log file which has date stamp, I just wanted to change the date automatically on daily basis when it runs.
Tried the below, but no luck.
grep -i error /var/bv1to1_var/logs/bv03.bectondickinson.com/bvlog.out.`date +\%Y\%m\%d` | tee error_bv03.doc
I would highly... (10 Replies)
Discussion started by: seenuvasan1985
10 Replies
3. Shell Programming and Scripting
Dear All,
I have a shell script which has JAVA code inside it runs perfectly on command line. But while I set it on cron, all rest of the script runs but Java code doesnt.
java -cp... (3 Replies)
Discussion started by: Deei
3 Replies
4. Shell Programming and Scripting
Plz help me
To display date in the mm/dd/yyyy. Eg. if date is 28-09-2012 the output of the shell script should be date 09/28/2012. (1 Reply)
Discussion started by: shivasaini
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I try to run a script shell from a java program:
but it runs only if i do :chmod 777 myShellScript in the terminal
Please how can i insert chmod 777 in my java code without going through the terminal?
Thank you (1 Reply)
Discussion started by: chercheur857
1 Replies
6. Programming
Hello,
Please i want to insert this code in a java program because i need to call a java function inside the while:
Please how can i do?
thank you so much (9 Replies)
Discussion started by: chercheur857
9 Replies
7. Shell Programming and Scripting
Hello;
Is it possible to insert Java code in a shell script, if so how please?
Thank you (0 Replies)
Discussion started by: chercheur857
0 Replies
8. Programming
Hello,
This is my script shell:
echo Mon premier script
echo Liste des fichiers :
ls -la
exit 0
This is my code java:
public class test {
public static void main(String args) {
try {
Process process = Runtime.getRuntime().exec("sh script1.sh");
} catch... (2 Replies)
Discussion started by: chercheur857
2 Replies
9. Shell Programming and Scripting
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
finally {
if (null != hibernateSession && hibernateSession.isOpen()) {
//hibernateSession.close();
}
}
It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies
10. Shell Programming and Scripting
Hi,
I have a variable called asOfDate in shell script.
I need to pass it as a command line argument to a java command which will be called from the same shell script.
The format of that variable is "MM/DD/YYYY"
while doing echo, it is printing correctly in the java command.
ie.... (0 Replies)
Discussion started by: vanathi
0 Replies