UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 15th, 2003, 09:30 AM
mwinfie mwinfie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 mwinfie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry Cygwin, cron and Kshell -- please help

I'm currently trying to run a ksh script from cron using cygwin.
The script works perfectly from the command line. But when I attempt simple things like "let" or kshell file existence cheking from cron, I receive the following message:

'let: not found'

'[[: not found'


This script is using the '#!/bin/ksh' to pick up the ksh and I've even changed the oracle user's shell to ksh in the password file.
If anybody has ideas, please let me know. The default shell cygwin comes with is bash.

#!/bin/ksh

let a=0

RemoveZipFile()
{
# Remove previous backup up zip file

if [[ -a f:/oracle_export_data/dmadwp/help.*.zip ]];
then
/usr/bin/rm f:/oracle_export_data/dmadwp/help.*.zip
else
mutt -s 'DMADWP Export could not find zip file to remove. Export stopped' URL' < /dev/null
exit 15
fi

}

RemoveZipFile

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Cygwin, cron and Kshell -- please help


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway