• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic