LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-28-2006, 07:08 AM   #1
user52
Member
 
Registered: Nov 2006
Posts: 38

Rep: Reputation: 15
display date


hello sir

sir i create shell scirpt for export backup

and now i want to schedule it..
so i want exp bkp file take sysdate automatically everyday....

so sir how can i add sysdate with exp backup like
file=exp_sysdate ( 28112006)


taj
 
Old 11-28-2006, 07:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
just use the date command, e.g

echo hello the date is $(date) > atextfile-$(date +%d%m%y)
 
Old 11-28-2006, 07:20 AM   #3
user52
Member
 
Registered: Nov 2006
Posts: 38

Original Poster
Rep: Reputation: 15
sir thanx for ur reply i am not understand plz help


sir my shell script like

name is exptest.sh
oracle@spiora]$vi exptest.sh
#!/bin/bash
./exp hr/hr tables=emp file=/db/bkp/exp_sysdate(here i want date)
shift+ZZ

oracle@spiora]$./exptest.sh


sir plz reply how can i use date variable in my above script.

thank you..
 
  


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
thunderbird puts time instead of date under 'date' header wabbalee Linux - Software 4 11-26-2006 04:58 AM
current date - yesterday's date newbie_adm Linux - Newbie 4 09-04-2006 03:56 PM
Date display in Thunderbird kbcnetau Linux - Software 5 04-08-2005 08:27 PM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 03:27 PM
lastlog date does not match system date? jcmj Linux - Networking 6 10-22-2002 12:09 PM


All times are GMT -5. The time now is 04:05 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