Hello, so basically i have a txt file containing "foto's" named YYYY-MM-DD_HH.mm.ss.jpeg.
But since it can probably not convert it it changes the date to the current date. What am i doing wrong?
This is the error i'm getting (basically it is saying that it is a invalid date)
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
$beginDate = substr(DateCalc("today", "-7Days"),0,8);
This fetches the date 7 days back
Can I fetch the date before 7 years from todays date in Perl using same syntax
Use code tags, see PM. (3 Replies)
Hi,
I want to add some hours and minutes to the current date. For example, if the current date is "July 16, 2012 15:20", i want to add 5 hours 30 minutes to "July 16, 2012 00:00" not to "July 16, 2012 15:20". Please help.
Thanks! (4 Replies)
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
LEARN ABOUT DEBIAN
pilot-foto
pilot-foto(1) PILOT-LINK pilot-foto(1)NAME
pilot-foto - Palm 'Foto' Image Installer/Remover/Fetcher/Converter
SECTION
pilot-link: Userland conduits
SYNOPSIS
pilot-foto [-p|--port <port>] [--version] [-?|--help] [-q|--quiet] [--usage] [-d|--delete] [--delete-all] [-i|--install] [-l|--list]
[-f|--fetch] [-F|--fetch-all] [-c|--convert]
DESCRIPTION
This is a palm conduit to fetch, install, or remove, Foto files from a Palm. It can also convert *.jpg.pdb files that have already been
fetched from the Palm to jpeg files.
Delete all, or named fotos from handheld.
Install one, or many jpeg images to handheld.
List all jpeg files and thumbnails on handheld.
Fetch all jpeg files, or certain ones by name.
Tries to detect if a file really is a jpeg and refuses to install it, if it is not.
pilot-foto allows you to do multiple operations in one sync. For instance, delete test.jpg and install test.jpg.
USAGE
pilot-foto -p <port> [options] file
OPTIONS
pilot-foto options
-d, --delete
Delete a jpg file on the handheld
--delete-all
Delete ALL jpg files on the handheld
-i, --install
Install a jpg file
-l, --list
List all photos and thumbnails
-f, --fetch
Fetch files from the Palm
-F, --fetch-all
Fetch ALL jpg files from the Palm
-c, --convert
convert [file].jpg.pdb files to jpg
Conduit Options
-p,
--port port
Use device file port to communicate with the Palm handheld. If this is not specified, pilot-foto will look for the $PILOTPORT environment
variable. If neither are found or supplied, pilot-foto will print the usage information.
-q,
--quiet
Suppress 'Hit HotSync button' message
-v, --version
Display version of pilot-foto and exit without connecting.
Help Options
-h, --help
Display the help synopsis for pilot-foto and exit without connecting.
--usage
Display a brief usage message and exit without connecting.
EXAMPLES
Examples:
pilot-foto -p /dev/pilot -f pilot-foto -d MyImage.jpg
pilot-foto -i MyImage.jpg
pilot-foto -i *.jpg
pilot-foto -f MyImage
pilot-foto -c MyImage.jpg.pdb
PROBLEMS
Palm has not published their database format for the thumbnails. So, pilot-foto puts a generic penguin thumbnail for every image uploaded.
Fotos can be accessed by a named list on the handheld as well as the thumbnails. This has been tried on a couple of handhelds. It is possi-
ble that a foreign palm or different model will not like it.
To get a thumbnail image you can copy the jpegs to the memory card. If you copy them back to the handheld they will have a new thumbnail
that matches the jpeg.
AUTHOR
This manual page was converted to XML by Neil Williams <linux@codehelp.co.uk>
BUGS
If a jpeg is installed with the same name as one already on the palm you will have 2 thumbnails pointing to the same jpeg. The new jpeg
will overwrite the old jpeg.
If the thumbnail fails to install then the jpeg should be removed. It is not.
We have an online bug tracker. Using this is the only way to ensure that your bugs are recorded and that we can track them until they are
resolved or closed. Reporting bugs via email, while easy, is not very useful in terms of accountability. Please point your browser to
http://bugs.pilot-link.org: http://bugs.pilot-link.org and report your bugs and issues there.
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
SEE ALSO pilot-link(7)0.12.5 Copyright 1996-2007 FSF pilot-foto(1)