Search Results

Search: Posts Made By: kennylcn
12,717
Posted By kennylcn
> sh -x test5.sh test5.sh: syntax error at line...
> sh -x test5.sh
test5.sh: syntax error at line 3: `STAMP=$' unexpected

I think I got the perl but dont know whats happen.
12,717
Posted By kennylcn
ksh: tclsh: not found > cd /usr/sfw ksh:...
ksh: tclsh: not found

> cd /usr/sfw
ksh: /usr/sfw: not found
> cd /opt/sfw
ksh: /opt/sfw: not found
12,717
Posted By kennylcn
I try this script but still doesn't work ...
I try this script but still doesn't work

#!/usr/bin/ksh

the_hour=`date +"%H"`
the_min=`date +"%M"`
# calc_time=`expr $the_hour - 3`
calc_time=`expr $the_min - 30`
echo "The current time is...
12,717
Posted By kennylcn
How to touch a file 30min ago
I know how to touch like this
touch -t 199908031046 /tmp/file1
But I want to create a cron job for touch a file which 30 min ago in Solaris which haven't -mmin

Can I use like this ? touch -t...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy