• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

problem in Runtime.exec(String s)

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic