Results 1 to 5 of 5
(title)
thanks in advance...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-30-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 35
is there a way to run a script by writing ./script instead of ./script.sh?
(title)
thanks in advance
- 05-30-2009 #2
Just rename the script from "script.sh" to "script". Your script will need to be made executable and at the top you should have a line (or lines) that stipulate which shell should be used to run the script e.g.
orCode:#!/usr/bin/env bash
Code:#!/usr/bin/bash
- 05-30-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 35
yea works fine now...
thanks m8
- 05-30-2009 #4
And if you put it in your /user-name/bin/ folder you don't need to type the "./" just "script".
Pete
- 05-31-2009 #5Just Joined!
- Join Date
- Dec 2006
- Posts
- 85
also you can set kde (if you have it) to run the script when you run a certain file, for instance: if i have a script which runs mplayer i can run that script from kde by using <path to script>/thescript.sh %U i like that one a lot (i love using custom scripts for things like that)


Reply With Quote
