0

I want to create a Hello World exmaplo in CDE, as KSH scripting like this and this

I've started on this at my job; there are computers with AIX, so I tested the previous examples successfully. Then I want to try them in my computer with Debian, but I'm having this error:

-bash: ./hello: /usr/dt/bin/dtksh: bad interpreter: No such file or directory

Actually this is my code:

#!/usr/dt/bin/dtksh
XtInitialize TOPLEVEL dttest1 Dtksh $0
XtSetValues $TOPLEVEL title:"dttest1"
XtCreateManagedWidget BBOARD bboard XmBulletinBoard $TOPLEVEL \
   resizePolicy:RESIZE_NONE height:150 width:250\
   background:SkyBlue
XtCreateManagedWidget BUTTON pushbutton XmPushButton $BBOARD \
   background:goldenrod \
   foreground:MidnightBlue \
   labelString:"Push Here" \
   height:30 width:100 x:75 y:60 shadowThickness:3
XtRealizeWidget $TOPLEVEL
XtMainLoop

In addition:

This is what I do when I create and to execute the script:

  1. vim hello.ksh
  2. After created my file I use chmod +x namescript
  3. then ./hello.ksh

Consulted

I've search few information about this: reference1 reference2 reference3 reference4

I used the dos2unix -k -o filename conversor

also the :set fileformat=unix in vim.

How could solve this? I'll appreciate any help, thank you.

4
  • Do you have /usr/dt/bin/dtksh on your machine? Commented Aug 20, 2020 at 0:51
  • Mmm no, there's no any clue of /dt path... Is it any way to get it? I have already KSH installed. Commented Aug 20, 2020 at 1:29
  • 1
    It doesn't look simple; unix.stackexchange.com/questions/368229/… may help but that's 3 years old... Commented Aug 20, 2020 at 2:09
  • Mmm I'll trying with a SparkyLinux Distro, I'm going to be updating the topic periodically. Thank you @StephenHarris Commented Aug 20, 2020 at 18:50

0

You must log in to answer this question.

Browse other questions tagged .