vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have been working on scripting for quite some time now. BUT I came across this style of script: script.sh* . Why does this " * " come into picture? Only difference I see between script.sh and script.sh* is we dont need any sh to run the script.sh*. Does this" * " make it executable . If yes how do we get this " * " in normal scripts. Is it just by changing the permissions to execute ( chmod x script.sh)? Thanks |
| |||
| what command are you running that shows the "*" ? 77.sumeet@gmail.com wrote: > I have been working on scripting for quite some time now. BUT I came > across this style of script: > > script.sh* . Why does this " * " come into picture? Only difference I > see between script.sh and script.sh* is we dont need any sh to run the > script.sh*. > > Does this" * " make it executable . If yes how do we get this " * " in > normal scripts. > > Is it just by changing the permissions to execute ( chmod x script.sh)? > > Thanks |
| ||||
| 77.sumeet@gmail.com wrote: > Is it just by changing the permissions to execute ( chmod x script.sh)? chmod +x script.sh ^ This will tell the system it's an executable, so "try to execute it". To tell the system (or the shell) how to execute it, you to put the #! line at the top of the file. -- Alex. |