The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shellscript problem ravi raj kumar UNIX for Advanced & Expert Users 1 09-07-2007 02:05 AM
Shellscript for MQSeries ram2s2001 High Level Programming 0 12-12-2005 12:48 AM
Another shellscript question jigarlakhani Shell Programming and Scripting 18 11-30-2005 10:50 AM
ftp in Shellscript ggowrish UNIX for Advanced & Expert Users 3 06-11-2004 08:09 AM
Create Shellscript newuser100 Shell Programming and Scripting 1 11-29-2001 09:46 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-10-2005
jigarlakhani jigarlakhani is offline
Registered User
  
 

Join Date: Feb 2002
Location: Chicago IL
Posts: 41
Need help with shellscript

Hello. I am a novince at writing shell scripts but here is the question. I have to write a shell script that does the following:

Once executed via crontab, the script should do the following:
a. get date/time stamp in for format 10-MAR-05 and
b. execute shell script my_script.sh (which collects information
c. pass date/timestamp to sqlquery
d. email output of this to recipies using mailx.

Can you give me an example on how to do this?

thanks
Jigar
  #2 (permalink)  
Old 11-22-2007
mvictorvijayan mvictorvijayan is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 29
Shell script

Can u elaborate the question?
  #3 (permalink)  
Old 11-22-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
Can you show us what you have for your script and sql ?

Otherwise ...
a. man date
b. man crontab
c. need to see your sqlquery
d. man mailx

Cheers,
Cameron
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0