Results 1 to 3 of 3

Thread: How To Execute "Hello World" command in Kornshell Script on Ubuntu Terminal

  1. #1
    Join Date
    Jan 2013
    Beans
    4

    How To Execute "Hello World" command in Kornshell Script on Ubuntu Terminal

    Hi. Does anyone know how to execute the "Hello World" command in Kornshell script? I'm reading O'Reilly's Kornshell manual and it's just not absorbing...

  2. #2
    Join Date
    Jun 2011
    Location
    The Shadow Gallery
    Beans
    6,807

    Re: How To Execute "Hello World" command in Kornshell Script on Ubuntu Terminal

    Quote Originally Posted by Hendiesel View Post
    Hi. Does anyone know how to execute the "Hello World" command in Kornshell script? I'm reading O'Reilly's Kornshell manual and it's just not absorbing...
    Do you mean how do you write a shell script in korn shell to print "Hello World" ?
    Code:
    nano hello.ksh
    Code:
    #!/bin/ksh
    # Hello World 
    echo "Hello World"
    Save it.

    Set it to be executable
    Code:
    chmod +x hello.ksh
    then run it

    Code:
    ./hello.ksh
    Feel Free to Bitcoin Tip: 135Rp4pwwYTHEJ4u8bxKaDQiC91N9LUoV2

    Backtrack - Giving machine guns to monkeys since 2006
    Kali-Linux - Adding a grenade launcher to the machine guns since 2013

  3. #3
    Join Date
    Jan 2013
    Beans
    4

    Re: How To Execute "Hello World" command in Kornshell Script on Ubuntu Terminal

    Yes, exactly. Thank you very much! A simple question, I know.

Bookmarks

Posting Permissions

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