[SOLVED] Help required for executing ksh script on windows using cygwin
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help required for executing ksh script on windows using cygwin
Hi All,
I am trying to execute ksh script on windows sever using Cygwin and getting the below error message,
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Need you help to know whats the issue and how to solve it.
thanks in advance.
Hi,
Sorry for not including more details, actually I have been asked to modify an existing ksh script on SUNOS/AIX environment to work on windows environment using Cygwin.
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Unable to initialize device PRN
Blind? Without any idea of the script contents or even a description?
You must think we are not only wizards, but mind readers! ;-)
Could you, perhaps, give us a little to go on?
Have you tried other scripts, and can you post an example of one that throws this error?
What have you attempted so far, and what results obtained?
Is this CYGWIN install current?
Note that this script sources other scripts, and the detail throwing errors may be in the other scripts.
Do you have CUPS running under CYGWIN? This appears to depend heavily CUPS or something that looks like it.
Is CUPS well configured and working? Do you have a PRN printer defined?
Have you checked all of the paths? Paths on a Linux system, or under CYGWIN, are likley to differ from those under AIX, SOLARIS, or HP-UX. (Having tripped over those issues on all three!)
I much prefer running native Linux and stopped using CYGWIN some while back. When I was using it I found it very powerful. Porting things from Linux to CYGWIN was easy. Porting things from AIX to Linux more challenging. You are trying to go direct from AIX land to CYGWIN, and that is likely to take some very careful and painstaking desk checking and troubleshooting skills. This is not something to expect to finish quickly.
This is due to a difference in command interpreter. The print command works with Korn Shell, but Bash uses echo, instead of print. Once I changed the prints (which in Korn route to the default printer port) to echos, I stopped getting the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.