Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 3rd, 2004, 09:03 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default java spawning

guys...im new here and i need help...i got this project that was assigned to me...im not a java programmer but i have a background on java...this project when created will be implemented in a unix platform..specifically HP-UX OS...the problem is i dont know how to spawn a HP-UX shell command or unix shell command using java codes...in other words i would like to know the functions that is used in spawining...help is very mch appreciated..tnx

 
Old April 12th, 2004, 05:37 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
You can try this:
String[] cmd = {"/bin/sh", "-c", "ls > hello"};
Runtime.getRuntime().exec(cmd);

Hope it works!!
Bye





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error spawning cl.exe TypX BOOK: Beginning Visual C++ 6 8 September 25th, 2009 05:44 PM
Access database spawning other databases! Keith Smith Access 3 November 22nd, 2008 12:49 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Compact Framework Error spawning ". ????? drb2k2 General .NET 0 March 9th, 2005 02:13 PM
Spawning a VB EXE from another EXE alantkilzer VB How-To 3 July 30th, 2003 07:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.