Help with writing a script to run java commands in sequence in UNIX
Hi,
Brand new to these forums, and I hope that someone can help me out.
I'm trying to run the following command in UNIX
It executes the SplitSamFile from GATK, but I want to run 3 additional commands, in a sequence. I can get them to run simultaneously but not in sequence, as I'm not able to pause the jobs (using ctrl + z) and put them in the background.
I've tried the following in my UNIX bash system (example with just two commands):
but this gives me the following error:
I've tried to consider doing a SH script, but can't figure out how to make the commands come in sequence rather than all starting at the same time.
If you mean in sequence you don't need the ampersand. It's not clear what your intention is given the use of "in sequence" . The ampersand would when used correctly would run the command in a subshell.
Hello!
This is my first post, and I just learned what UNIX was this week. For a JAVA programming class I am taking, I must be able to create a directory in UNIX, use the nano command to create a JAVA program, compile it, and then run it on the command prompt using the java command.
For some... (5 Replies)
Hi
Im using MobaXterm Unix on my windows XP.I want to compile java in unix.I have installed java to the following path C:\Program Files\Java\jdk1.7.0_09\bin
In order to compile the java prog im typing the following command after entering into the bin directory:
C:\Program... (2 Replies)
Greeings all
Im trying to excute a command from Java and direct the output to the main output screen or to another file .... can you please help with this ? can I use filewriter for this ?
Here is my code....
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;... (3 Replies)
I am trying to prompt the user using tput command to read the information ( 5 last names, first names and grades) from the keyboard. Save the data in a file called student.txt. Sort the file by last name and display it on the screen
My pseudocode is as follow:
Pseudocode:
Initialize your... (1 Reply)
Can anyone help me out in visualizing on what is the logic behind simple unix commands. For Eg: ls command lists files and directories, how it displays I need to know the source code for commands like this. (1 Reply)
Hi,
Iam trying to code in java and wanted to run the commands in the Unix remote servers. I have the following code to run multiple GREP commands in a single session.
But when i execute this, the first command executes successfully, whereas from the next line it says
"Exception Occured... (1 Reply)
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
I need to run .java from a directory.
i.e. c:\aaa\bbb\ccc.java
first I compile all the java using javac *.java under the c:\aaa\bbb directory, now I want to run this command under cd .. ,
Here is the command that I need to type..
java -classpath... (5 Replies)
HI, I want to run my .java file on a SunOS 5.8 Unix machine. The java file is writen with Ready to Program (Similar to Jbuilder) on a PC.
Thanks!! (3 Replies)
Hi
I'm trying to automatically run a command on a UNIX (AIX) machine from a Windows NT 4 machine. I can do this manually using the 'rexec' or 'rsh' command but I need an automatic login (on the AIX). In the manual I've found that there should be a '.rhosts' file on the Unix machine in the... (1 Reply)