LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2004, 07:14 PM   #1
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Rep: Reputation: 30
Question multiple bash commands at once


I'm looking to use the java runtime environment class to execute bash commands. how can you link on command after another. I'm wanting to make a front end ripper and recorder. I looked at the http://www.tldp.org/, and in my linux and java books and have been unable to find the answer. Can anyone point me in the correct direction.

similar to
cdparanoia -w 1 track1
cdparanoia -w 2 track2

can i combine these two commands into one concistant rip?

Last edited by xviddivxoggmp3; 08-12-2004 at 07:34 PM.
 
Old 08-12-2004, 08:34 PM   #2
retep
Member
 
Registered: Sep 2003
Distribution: RedHat/Debian
Posts: 50

Rep: Reputation: 15
You can just use the regular Runtime/Process comands for this, no?

e.g.
Code:
Process process = Runtime.getRuntime().exec(cmdAndArgs);
Check the process exit values (or wait for it) so you know when it has exited.
 
Old 08-12-2004, 08:54 PM   #3
xviddivxoggmp3
Member
 
Registered: Feb 2004
Location: scanf
Distribution: Redhat Enterprise 4.4 AS
Posts: 236

Original Poster
Rep: Reputation: 30
I have already thought of that check out this thread.
http://forum.java.sun.com/thread.jsp...&thread=546314
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vB forum front-end? General Linux - Software 3 10-18-2005 12:14 AM
Front End Advice Please thadco Programming 2 06-21-2005 04:02 AM
Front- End for Qmail Koven Linux - Software 1 03-09-2005 02:56 PM
What does it mean to unpack your front end? dns21 Linux - Newbie 5 08-02-2004 01:03 AM
after a web front end acid_kewpie Linux - Networking 1 08-15-2002 05:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration