File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes problem in Runtime.exec(String s) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "problem in Runtime.exec(String s)" Watch "problem in Runtime.exec(String s)" New topic
Author

problem in Runtime.exec(String s)

wip siva
Ranch Hand

Joined: Nov 03, 2000
Posts: 36
hi buddies
i am using Runtime.getRuntime().exec("backup.ini");
this will execute this script file.
inside the file look like this
tar cvf test.tar /home1/backup
this will store all the files from /home1/backup to
test.tar
but while executing through GUI (RMI call) its giving error.
its working but not completely.
but samething if i run from simple java application(server itself) it works fine.
i don't know wheather the problem in RMI or exec();
plz help me in this regard
thanx
bye
siva
Peter Tran
Bartender

Joined: Jan 02, 2001
Posts: 783

Wip,
Are you running in an applet or an application? If it's an applet, then you might be running into security problems.
-Peter
 
IntelliJ Java IDE
 
subject: problem in Runtime.exec(String s)
 
Threads others viewed
Delete line in file
mysql database restore
Java Stored Procedure to execute exp.exe for taking BACKUPS
How to transfer a bunch of files over internet
Java Stored Procedure to execute exp.exe for taking BACKUPS
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture