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:
- vim hello.ksh
- After created my file I use
chmod +x namescript
- 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.
/usr/dt/bin/dtksh
on your machine?/dt
path... Is it any way to get it? I have alreadyKSH
installed.SparkyLinux
Distro, I'm going to be updating the topic periodically. Thank you @StephenHarris