This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in Runtime.exec(String s)  RSS feed

 
wip siva
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Wip,
Are you running in an applet or an application? If it's an applet, then you might be running into security problems.
-Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!