03-25-2010
Quote:
Originally Posted by
jyoung
Why not rename the files on the server or move them to a backup directory.
Maybe he doesn't have write access to the remote server. Otherwise he could write the time stamp file on the remote server.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
1) How do I get the name of latest file in a variable?
2) Is it safe to delete all files from a dir
I am doing
cd $dir_name
if return_code > 0
rm *
fi
what are other alternates to delete all files from a dir in a shell script?
:) (5 Replies)
Discussion started by: Hangman2
5 Replies
2. Shell Programming and Scripting
I am trying to scp the latest file which ends with "_abc.log". Can some help me figure out how can do that? (3 Replies)
Discussion started by: shehzad_m
3 Replies
3. Shell Programming and Scripting
i have the following in my directory x:
3 files with the word "LIST" inside the files
2 files without the word "LIST"
1 folder (sudirectory)
i want to get the filename of the latest file (timestamp) with the word "LIST".
by the way the script and the list of files are in seperate... (4 Replies)
Discussion started by: inquirer
4 Replies
4. Shell Programming and Scripting
Hi All,
I am SFTP ing file from Windows server (Sydney) to Unix host in London (both servers are on different timezones). It appears the upstream (Windows server team) does not do a file housekeeping activity and henceforth there are multiple files i.e. each week the script is scheduled to run... (1 Reply)
Discussion started by: vigdmab
1 Replies
5. Shell Programming and Scripting
Hi All,
In my unix server, I have the following files:
h1.txt
h2.txt
h3.txt
and through SFTP i need to copy only the latest file to another unix server.
Can you please let me know what command i need to use.
Thanks in Advance, (2 Replies)
Discussion started by: HemaV
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I need your help in finding the latest files in remote sftp and get those files to local server and process them. Please let me know
I appreciate your valuable inputs.
Thanks
raj (7 Replies)
Discussion started by: rajeevm
7 Replies
7. Shell Programming and Scripting
Hi,
Anybody help me to write a Shell Script
Get the latest file from the file list based on created and then move to the target directory.
Tried with the following script: got error.
A=$(ls -1dt $(find "cveit/local_ftp/reflash-parts" -type f -daystart -mtime -$dateoffset) | head... (2 Replies)
Discussion started by: saravan_an
2 Replies
8. Shell Programming and Scripting
hi guys the script is working but i need to change the file that i want to get to the latest.. i will use this as cron so i can get the latest sftp file evryday.
pls help..
set user "big_user"
set IP "XX.XX.XX"
set dir "/export/home/oracle/REF/INPUT"
spawn sftp $user@$IP
expect sftp>
... (7 Replies)
Discussion started by: JONATHAN0919
7 Replies
9. Shell Programming and Scripting
Hi ,
I did the initial search but could not find what I was expecting for.
15606Always_9999999997_20160418.xml
15606Always_9999999998_20160418.xml
15606Always_9999999999_20160418.xml
9819Always_99999999900_20160418.xml
9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Discussion started by: chillblue
4 Replies
10. UNIX for Beginners Questions & Answers
HI Guys,
Can anyone help me to retrieve the latest file from below example using SFTP
I have below list of files in a folder
v403t.lstprgms.sortin1
val027.d099.fwest.oct2711
xcelrptd.d1400sqp.dec1713.t040459.@02del
xcelrptd.d1400sqp.dec1713.t073308.@02del... (3 Replies)
Discussion started by: heye18
3 Replies
LEARN ABOUT DEBIAN
dbd::firebirdembedded
FirebirdEmbedded(3pm) User Contributed Perl Documentation FirebirdEmbedded(3pm)
NAME
DBD::FirebirdEmbedded - embedded Firebird server (and client)
SYNOPSIS
use DBI;
$dbh = DBI->connect("dbi:FirebirdEmbedded:db=$dbname", undef, undef);
# See the DBI module documentation for full details
DESCRIPTION
DBD::FirebirdEmbedded is a variant of DBD::FirebirdEmbedded, linked with the Firebird embedded library, libfbembed. In addition to the
ability to work with remote Firebird servers (which DBD::FirebirdEmbedded has, being linked with the Firebird client library, libfbclient),
DBD::FirebirdEmbedded can be used to work with Firebird databases without the need of a dedicated Firebird server.
The following things should be set up first:
Username/password
These should be unset. Both in the "DBI->connection(...)" call and in the environment ("ISC_USER", "ISC_PASSWORD", "DBI_USER",
"DBI_PASSWORD" variables).
Firebird lock directory
The "FIREBIRD_LOCK" environment variable should be set to some place where the process can write. Note that if you plan for several
processes to access the database file directly, they all should have "FIREBIRD_LOCK" set to the same directory, or else database
corruption will occur.
No "host" in the DSN
Obviously, do not set any host when calling "DBI->connection(...)", not even "localhost".
Permissions to read/write the database
Obviously, the process needs to be able to read/write the database file.
COMPARISON WITH DBD
::FIREBIRD
DBD::FirebirdEmbedded provides exactly the same functionality as the Firebird server of the same version as the libfbembed library. It
still can work with remote datases, in which case the use is exactly the same (DSN, environment) as with the regular DBD::FirebirdEmbedded.
Pros
Standalone work with Firebird databases
No need to setup/administer a Firebird server. All the server functionality is available via the libfbembed library. Shared access to
databases is still possible (but read "Firebird lock directory" above).
No network latency
Working directly with the database file elliminates possible network delays (even if the server is on the local host).
Cons
Memory footprint
The libfbembed library contains a fully functional Firebird server and is therefore bigger than the ordinary client library,
libfbclient.
Setup complexity
It is very important to make sure that all processes that access a given database use the same lock directory. See "Firebird lock
directory" above.
SEE ALSO
DBD::FirebirdEmbedded
perl v5.14.2 2011-11-15 FirebirdEmbedded(3pm)