Ignore:
Timestamp:
08/11/2010 04:20:09 PM (13 years ago)
Author:
marcus
Message:

r135 | klaus | 2010-08-11 16:18:22 +0200 (Mi, 11 Aug 2010) | 1 line

sfd_from_sfdb for Linux systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/seed_io/sfd_from_sfdb.csh

    r31 r262  
    44#      ================= 
    55# 
    6 # $Revision: 16 $, $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) $ 
    77# 
    88# Create sfdfile (db type) for given time window 
     
    4848set etime=`printf "%02d%02d%02d.%03d" $hour $min $sec $ms` 
    4949 
    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)" 
     50if ("`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)" 
     52else 
     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)" 
     54endif 
Note: See TracChangeset for help on using the changeset viewer.