LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-20-2004, 02:55 AM   #1
cinderella
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
creating shell script programming using KNOPPIX.. help


Hello!

just successfully run Knoppix in my pc. thank god!
i have to do shellscript programming using knoppix.

my problems are:
a) whats the notepad (in windows) equivalent here in knoppix?
b) what do i have to do to save my program in my hard disk?

please. i need help.

thanks in advance.

ps.
please do tell me about other things i need to know before doing shellscript programming.. im a first time linux user!
 
Old 12-20-2004, 03:04 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Since Knoppix is KDE, if I recall, probably Kate, though I'm sure vim's on there.

I forget the command but the Knoppix docs should say - basically there's a command to write a little tarball to your hard drive (probably floppy's an option, too) and you have to start Knoppix with an option like Knoppix_home=/partition to reload the settings (wrong syntax, I'm sure, but it's just an example). Knoppix used to have a sort of HTML readme on the desktop as well as boot up messages that explained all this.

For shell scripting, each starts with

#!/path/to/interpreter (usually sh)

and each must have

chmod 700 (or the like)

applied to it to make it executable. The rest is just stringing together commands and flow-control constructs and there's lots of sites on that with more details, as well as your man pages on your system - especially the one for the interpreter/shell you're using.

-- Just realized I compared Kate and vim to Notepad. But I mean, they're probably the editors you want to try scripting with. They're nothing like notepad, except that they come with the system by default and edit text.

Last edited by slakmagik; 12-20-2004 at 03:06 AM.
 
Old 12-20-2004, 03:28 AM   #3
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Probably kwrite or kate
vi also works if you want to run it through a terminal
 
Old 12-20-2004, 04:58 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Quote:
please do tell me about other things i need to know before doing shellscript programming.. im a first time linux user!
  1. Don't work as root!
  2. Read books on scripting.
  3. Read this.
  4. Also read this.

That should get you started.
 
Old 12-20-2004, 07:12 PM   #5
cinderella
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks guys! you really helped me!!!
 
  


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
question about shell-script programming GSX Programming 11 11-22-2005 04:58 PM
Help with creating a shell script windisch Programming 66 10-07-2005 06:26 AM
shell script programming problem newbie_ken Programming 5 08-16-2004 11:19 AM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM
shell script programming steltner Linux - General 0 05-17-2003 07:00 AM


All times are GMT -5. The time now is 07:24 PM.

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