Novell Home

My Favorites

Close

Please to see your favorites.

FAQ: Linux post-conversion scripting

This document (7970214) is provided subject to the disclaimer at the end of this document.

Environment

PlateSpin Portability Suite

Situation

This article describes steps that will be necessary to ensure that post-conversion scripts scheduled to run properly on the target server during the Post Conversion Actions step.

Because Linux file systems allow different characters in file names, and because Linux file systems support different ACL (Access Control List) permissions than Windows, therefore special care should be taken when creating post conversion scripts.

Resolution

1)      It is suggested that the post conversion action scripts be tested in a self contained directory structure on a sample Linux host.
 

2)      Once the Action is deemed to work correctly, use tar (or a similar tool) to amalgamate the Action's directory structure into one file.

   

Example:
 

        cd /tmp

        tar -czvf NewAction.tgz /path/to/Action/Action_Folder/

   

* This will create a single file NewAction.tgz containing all files contained in the folder Action_Folder. The permissions of the files contained will be preserved.

 

3)      Copy the file NewAction.tgz to your Portability Suite Client Desktop.
 

4)      Create a new custom post conversion Action, that will extract the tgz file.

 

Example script:
 

        #!/bin/sh

        /bin/tar -xvzf NewAction.tgz

        #Exec the main executable / script in the NewAction folder

        Action_Folder/Action_script.sh

 
 

If you have any questions regarding this article, please contact:  support@platespin.com

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7970214
  • Creation Date:16-JUL-09
  • Modified Date:26-APR-12
    • NetIQPlateSpin Portability Suite
      PlateSpin Protect

Did this document solve your problem? Provide Feedback