Search Results

Search: Posts Made By: bhatia
5,147
Posted By bhatia
calling expect script in ksh is failing via cron
I'm calling an expect script via a ksh script in cron and it is failing. The script runs fine if i run it manually. Does anyone know if it is an issue with compatibilty and if there is a way around...
21,548
Posted By bhatia
I had tried this earlier and got the following...
I had tried this earlier and got the following error:

date: bad conversion
while executing
"exec date '+%m_%d_%y'"
invoked from within
"set DATE [exec date '+%m_%d_%y']"
(file...
21,548
Posted By bhatia
Thank you for the responce. I put the following...
Thank you for the responce. I put the following in the file:
expect -c 'set DATE [exec date +%m_%d_%y];puts "$DATE"'

but i am getting the error:

bad flag "-c": must be -glob, -regexp, -exact,...
21,548
Posted By bhatia
Expect script help
Using expect script how can i change the date (exec date) to following format mm_dd_yy ?
In ksh i can use somthing of the nature DATE=`date '+%m_%d_%y'`

---------- Post updated at 11:52 PM...
Showing results 1 to 4 of 4

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