Re: execute system commands
Re: execute system commands
- Subject: Re: execute system commands
- From: Chris Pavicich <email@hidden>
- Date: Tue, 20 Apr 2004 11:00:20 -0400
Frank:
If you don't mind using Objective-C, you should look at NSTask. It should handle what you want to do.
In Java, you could use java.lang.Runtime.exec()
(NSTask)
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSTask.html
(Exec)
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
HTH
CMP
On Tuesday, April 20, 2004, at 09:19AM, Frank Ribitch <email@hidden> wrote:
>
I need to create a program that parses an xml file created by the
>
command "system_profiler -xml -detailLevel -1"
>
>
I will be doing this in cocoa or cocoa java. I have done work with
>
cocoa java, so i am leaning that way right now. Anyways, how can I run
>
this command from within the application? The app will have almost no
>
user interaction. At the end of execution, it will report to the user
>
if it completed successfully or if there was a problem. If there was a
>
problem, it will state the problem. The purpose of the app is asset
>
management.
>
>
Also, i would like an app to run a procedure that I created when
>
initally launched. how do i do this? My procedure is called Start().
>
Its written in cocoa java.
>
>
Thanks
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.