Find the answer to your Linux question:
Results 1 to 2 of 2
We are currently in process of migrating from Solaris t0 RedHat Linux. The scripting shell is ksh. Our scripts use the command print like print -u "Test" The output of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    1

    Question Problems in Migrating script from Solaris to Linux


    We are currently in process of migrating from Solaris t0 RedHat Linux.
    The scripting shell is ksh.

    Our scripts use the command print like
    print -u "Test"

    The output of scripts directed to some files.
    In Solaris the output file gets created and has the output in it, but in Linux the output files gets created with 0 bytes and the output gets displayed at screen.

    It works fine in Linux if we use "print-u1" instead of "print -u".

    Could you suggest some way so that we do not have to change our shell scripts.

    Thanks,
    Jagmeet

  2. #2
    Linux Engineer khafa's Avatar
    Join Date
    Apr 2008
    Location
    Tokyo, Japan
    Posts
    858
    i have never used ksh but maybe you can alias print -u to print -u1.
    Linux and me it's a love story

Posting Permissions

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