Now I see, you want 1 day less than a given date.
It should work. I successfully checked with several versions of GNU date.
If even
does not work, then I suspect a bug in your date program.
Last edited by MadeInGermany; 09-26-2018 at 04:22 PM..
Hi,
I have an SFTP script which is called from another run script:
When the SFTP process is run we passed through an invalid ip address to check the error logging and to ensure everything is working as expected.
Below is a sample of the code in the script:
$RUNSOCKS... (2 Replies)
Hello,
We run solaris 8 with nis+, when I do niscat, I can see the user's information, but when I do id from the domain it is saying invalid user. What may be the problem?
id: invalid user name: "abyu789" (1 Reply)
I have telnet to a machine and executed some commands in it.
pls see below :
#!/usr/bin/expect
spawn telnet 170.10.11.1 2100
expect "login:"
send username\r
expect "password:"
send password\r
expect "$"
send "touch filetest\r"
expect "$"
send exit\r
expect... (3 Replies)
when i am executing the script i am getting ?Invalid command though the script is right.
Could any one please let me know how to overcome this problem. Urgent Please
Thanks a lot in advance (2 Replies)
Hi All,
I am trying to convert the date of all files under a directory in seconds,
PFB script
a=`ls -lrt | wc -l`
echo $a
for ((i=1;i<=$a;i++))
do
A=`ls -lrt | awk '{print $6,$7,$8}' | head -$i | tail -1`
echo ${A}
date -d '${A}' +%s
donebut I am getting error
date: invalid date... (1 Reply)
Hi All,
How to validate the 4th column,it is date column in the file, if it valid move to valid file else moved invalid file.
9f680174-cb87|20077337254|0|20120511|N
9f680174-cb88|20077337254|0|20120534|N
i want two file valid.txt and invalid.txt
Thanks, (7 Replies)
Dear all,
I have 2 questions.
I have a file with many rows which has date of the format YYYYMMDD.
1. I need to change the date to that weeks friday date(Ex: 20120716(monday) to 20120720). Satuday/Sunday has to be changed to next week friday date too.
2. After converting the date to... (10 Replies)
i try to set linux date & time in specific format but it keep giving me error
Example :
date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
or
date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01"
keep giving me this error :
date: invalid date ‘19-01-2017 00:05:01'
Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT DEBIAN
tcal
TCAL(1) General Commands Manual TCAL(1)NAME
Tcal - runs the Gcal program with the date of tomorrow's day.
SYNOPSIS
tcal [--help | --version] | [--shift=[+|-]number] [Argument...]
DESCRIPTION
Tcal is a program which runs gcal with a date set one day ahead (equivalent the --shift=1 option). All given arguments are passed unmodi-
fied to the Gcal program. If the Gcal program shall be called with another date than tomorrow's date, this desired date can be selected by
using the --shift=[+|-]number option, in which [+|-]number is the distance of days the desired date is distant from the actual date (works
only for Gregorian years). The --shift option must be given before all other arguments which are passed to the Gcal program. An exit status
of 0 means all processing is successfully done, any other value means an error has occured.
OPTIONS --help Print a usage message listing all available options, then exit successfully.
--version
Print the version number, then exit successfully.
--shift=[+|-]number
Define the displacement in [+|-]number days the desired date is distant from the actual date.
ENVIRONMENT
GCALPROG
The GCALPROG environment variable contains the file name of the executable Gcal program, which is used by Tcal to call Gcal. This
takes precedence over the file name `gcal', which is burned-in during the compilation step of tcal.
COPYRIGHT Tcal Copyright (c) 1995, 96, 1997, 2000 Thomas Esken
This software doesn't claim completeness, correctness or usability. On principle I will not be liable for any damages or losses (implicit
or explicit), which result from using or handling my software. If you use this software, you agree without any exception to this agree-
ment, which binds you LEGALLY !!
Tcal is free software and distributed under the terms of the `GNU General Public License'; published by the `Free Software Foundation';
version 2 or (at your option) any later version.
Any suggestions, improvements, extensions, bug reports, donations, proposals for contract work, and so forth are welcome! If you like this
tool, I'd appreciate a postcard from you!
Enjoy it =8^)
AUTHOR ------------------------oOO \\_''/ OOo---------------------------
Thomas Esken O (/o-o) O eMail: esken@gmx.net
Im Hagenfeld 84 (( ^ )) Phone: +49 251 232585
D-48147 Muenster; Germany \____) ~ (____/ MotD : 2old2live, 2young2die
SEE ALSO gcal(1), txt2gcal(1), gcal2txt(1).
June 14, 2000 TCAL(1)