Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 10-05-2007, 08:16 AM   #16
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234

2 things make a script executable:
  • Permissions --
    the bits represented by "x" in an ls -l listing -- see man chmod.
  • A "shebang" line --
    the 1st line of the script is:
    #! /bin/bash
If its directory is not in your $PATH, then it must be called w/ a full pathname, possibly as simple as ./name_of_script.
Old 10-05-2007, 06:07 PM   #17
Senior Member
Registered: Jul 2006
Location: USA
Distribution: Debian, FreeBSD, Android
Posts: 1,053
Blog Entries: 2

Original Poster
Rep: Reputation: 227Reputation: 227Reputation: 227
Ok i made the script:
#! /bin/bash

cd /home/replica/hda5/Webpages/
rm *.html~
and placed it in my home directory, and i ran it: ./myscript

worked great, i didn't need to set any permissions, but I ran it as root.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Back Ups???? raffytaffy Linux - Software 1 03-15-2006 11:08 AM
apc Back-ups a10392 Debian 1 12-03-2004 11:24 AM
Back ups vswr31 Linux - General 2 10-25-2004 01:56 AM
trouble using dd for remote back ups Jason Foat Linux - Networking 1 05-21-2002 03:05 PM
Trouble using dd for remote back ups Jason Foat Linux - Newbie 0 05-21-2002 02:43 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration