Results 1 to 3 of 3

Thread: How to run a script file on Linux ?

  1. #1
    Join Date
    Aug 2004
    Posts
    10

    How to run a script file on Linux ?

    Hi
    I'm building a setup for Linux, And i need to run a script file after the installation is done.
    How do i do that ?
    Thanks.

  2. #2
    Join Date
    Nov 2001
    Location
    INDIA
    Posts
    361
    Go to sequence view, and include a wizard action in Post Installation list. Select Execute Process action from wizard action list. In properties of Execute Process action, give path of the shell script file in command property. Hope this helps.

  3. #3
    Join Date
    Mar 2006
    Posts
    27

    Running Linux script

    Hi,
    You could do it by the following in the PostInstallSummaryDialog code. For example:
    Runtime.getRuntime().exec("sh directory2script/script.sh"); Make sure to set excutable permissions Runtime.getRuntime().exec("chmod -R 755 directory2script/script.sh");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •