Changeset 262 for SH_SHM/trunk/source/seed_io/sfd_from_sfdb.csh
- Timestamp:
- 08/11/2010 04:20:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/seed_io/sfd_from_sfdb.csh
r31 r262 4 4 # ================= 5 5 # 6 # $Revision: 1 6 $, $Date: 2008-01-25 16:30:13 +0100 (Fr, 25 Jan 2008) $6 # $Revision: 135 $, $Date: 2010-08-11 16:18:22 +0200 (Mi, 11 Aug 2010) $ 7 7 # 8 8 # Create sfdfile (db type) for given time window … … 48 48 set etime=`printf "%02d%02d%02d.%03d" $hour $min $sec $ms` 49 49 50 $SH_UTIL/sol_sql_call.csh $SFDBHOST "select * from sftab where ((sdate = $edate and stime <= $etime ) or sdate < $edate) and ((edate = $sdate and etime >= $stime) or edate > $sdate)" 50 if ("`uname`" == "Linux") then 51 mysql -h $SFDBHOST sfdb -B -e "select * from sftab where ((sdate = $edate and stime <= $etime ) or sdate < $edate) and ((edate = $sdate and etime >= $stime) or edate > $sdate)" 52 else 53 $SH_UTIL/sol_sql_call.csh $SFDBHOST "select * from sftab where ((sdate = $edate and stime <= $etime ) or sdate < $edate) and ((edate = $sdate and etime >= $stime) or edate > $sdate)" 54 endif
Note: See TracChangeset
for help on using the changeset viewer.