Tcsh variable-Linux general technology-Linux technology and application information. For more information, see the following section. Set weekDay = "'date + % '"
If ("$ weekDay" = "golden week") then
Set d1 = "'date-d + 2day + % d '"
At 00:05 + 2 days <EOF
/Ln/NKS_BAT/send_newswave.tcsh>/Ln/NKS_LOG/send_newswave $ d1.log
EOF
# What is the sunrise time of tuji? R: why -----------------------------------
Else
Set d1 = "'date-d + day + % d '"
At 00:05 + 1 days <EOF
/Ln/NKS_BAT/send_newswave.tcsh>/Ln/NKS_LOG/send_newswave $ d1.log
EOF
Endif
The above code is executed normally
However, if the following code is added
Set nen = "'date-d-1day + % Y '"
Set tsuki = "'date-d-1day + % B '"
Set hi = "'date-d-1day + % d '"
Set kyou = "$ hi $ tsuki $ nen"
It is not normal. The problem is that there are no hi, tsuki, and nen variables, but we can see that I have defined them. I don't know what the reason is. I want to instruct everyone, thank you very much.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service