Announcement

Collapse
No announcement yet.

How do I make a batch file?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I make a batch file?

    I open a text with Kate and add...
    Code:
    #!/bin/bash
    echo Hello World
    Then in properties of the file, I check Make Executable. Still no work =(
    Registered Linux User: 450747<br />Registered Ubuntu User: 16269

    #2
    Re: How do I make a batch file?

    hi Ant, try putting a space between #! and /bin/bash e.g
    Code:
    #! /bin/bash
    echo hello world
    if it is still not working, it could be something to do with your path settings
    so try running the following command from your terminal program
    Code:
    ./hello.sh
    which will force the kernel to look in the current directory for the file you've just made, before it looks anywhere else.

    Comment

    Working...
    X