LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 11-27-2006, 03:04 AM   #1
user52
Member
 
Registered: Nov 2006
Posts: 41

Rep: Reputation: 15
how can create shell script


Hello all,

how create shell script
or i want to take backup of oracle from exp utiltiy
so i want first create shell script then schedule every night 11.00 o'clock through cron tab utility ...but how can i do that...

plz. reply

i am newbie for linux... so i cann't ....


Taj
 
Old 11-27-2006, 03:07 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 11-27-2006, 04:22 AM   #3
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
hard to explain to you, generally you must understand all single command (and I assume you know).

Quote:
4 step to create a script
==============================
1. create a file
gedit script.sh

2. edit the file, example as below list all files in /etc:
Quote:
#!/bin/bash
ls -a /etc
3. save the script

4. set the script executable
chmod +x script.sh
To run the script, simple type ./script.sh in command prompt. It will show you the results.

Please convert it to suit your need. About the scheduling you need to use cron. This one later, don't make you confuse.

Ks
 
Old 11-27-2006, 10:33 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
kstan if a moderator says a thread is going to be closed please do not post in that thread because once its locked nobody can post anything in it. Cheers.
 
Old 11-27-2006, 11:16 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And closed per above.
 
  


Closed Thread



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
how create shell script user52 Linux - General 1 11-27-2006 03:35 AM
Create a shell Script that log in as root mashed Linux - Newbie 1 04-08-2006 04:13 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
How to create a shell script that reads something from stdin? ricky_ds Programming 2 05-17-2005 05:06 AM
Create CD catalogue using Shell Script Helene Programming 2 04-09-2004 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 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
Open Source Consulting | Domain Registration