LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

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

Rep: Reputation: 231Reputation: 231Reputation: 231

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:
    Code:
    #! /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, 05:07 PM   #17
replica9000
Member
 
Registered: Jul 2006
Location: Quahog, Rhode Island
Distribution: Debian 'Sid', FreeBSD, Android
Posts: 656
Blog Entries: 2

Original Poster
Rep: Reputation: 115Reputation: 115
Ok i made the script:
Code:
#! /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.
 
  


Reply


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 10:08 AM
apc Back-ups a10392 Debian 1 12-03-2004 10:24 AM
Back ups vswr31 Linux - General 2 10-25-2004 12:56 AM
trouble using dd for remote back ups Jason Foat Linux - Networking 1 05-21-2002 02:05 PM
Trouble using dd for remote back ups Jason Foat Linux - Newbie 0 05-21-2002 01:43 PM


All times are GMT -5. The time now is 03:55 AM.

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