LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-07-2004, 09:43 AM   #1
EECGeek
LQ Newbie
 
Registered: Sep 2003
Location: Ottawa. Ontario Canada
Distribution: Ubuntu 6.06.1
Posts: 26

Rep: Reputation: 15
change file format


I'm try to get Popfile 19.1 to load on start up.

Popfile works fine, I understand where to put the shell script in init.d and rc0.d etc and number it accordingly, and I have the script required saved as a plain text file.

How do I change a plain text file to a shell script, ie how do you change a file type/format?

I am fairly new to Linux, maybe my windows knowledge is causing a brain fart, and I'm sure this is probably a very easything to do, but I CAN'T figure it out, so be gentle on me!

Greg
 
Old 01-07-2004, 09:46 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
chmod +x shellscriptfilename
 
Old 01-07-2004, 09:47 AM   #3
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
PS: linux does not care about file extensions.

If you want a file to execute by just typing it's name add this line to the very top of the file:
Code:
#!/bin/bash
 
  


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
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
change partition label w/o format gjo Linux - General 5 06-28-2005 12:50 PM
Bulk change image format apokryphos Linux - General 11 09-06-2004 04:17 PM
All I want to do is change the date format... Slycordinator Linux - General 5 12-11-2003 01:27 AM
Possible to change the file format..? tarballed Linux - General 4 04-09-2003 02:12 PM


All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration