Guys
Iam trying to do a script to find what files are missing in particular directory.I came up with this
for i in file6 file7 file8 file9 file10 file11 file12; do
if ; then
echo " $file not in /mnt/Server/base/i386/ "
else
echo " $file ... "
fi
done
Iam trying to print... (2 Replies)
I'm sure this can't be too tough, but.
I want to check the existance of file(s) by extension. There may be 0,1,N files. If any files exist, then remove them.
Thanks for any insight. (3 Replies)
Hello, I have two files ..
1. inventory_i.txt
2. inventory_b.txt
I want to check if these two files exists. If exists, then do the process, otherwise, quite...
if ; then
echo "exists"
else
echo " does not exists"
fi
The above logic is not working... It is always, displaying Does... (2 Replies)
Need to make a very fast file existence checker. Passing in 20-50K num of files
In the code below ${file} is a file with a listing of +20,000 files. test_speed is the script. I am commenting out the results of <time test_speed try>.
The normal "test -f" is much much too slow when a system... (2 Replies)
Hi,
I need to find out if a particular file exists and i am using if with -e option.
Scenarion is like
There is a possibility of two files having nomaincluture like below
First file = abc20101028.somthing
Second File = abc20101028.somthing.done
I need to check abc20101028.somthing... (1 Reply)
Hi,
I am totaly new to create a script . Please help.
I have file name retrived from SAP table into a internal table .
Like :-
/home/td_8d02_int_data_IPCL/ILLUSTRATIONS/CGM/l_pc_112138_01_0_01_00.cgm
/home/td_8d02_int_data_IPC-L/ILLUSTRATIONS/CMP/l_pc_112138_01_0_01_00.cmp
Objective... (1 Reply)
In a Korn shell, I want to test whether a file exists on a remote shell. If I use
ssh <Remote server> ls abc
It gives file proper result, but unable to capture in the script.
Any help?
Thanks
Please use next time
code tags for your code and data (3 Replies)
Kindly help on below script:
<<
i='find ...'
if then
echo 'File Exists'
else
echo 'File Does Not Exist'
>>
If i has some file name then it runs properly but if i has nothing ( blank value) then it throws an error. I dont exactly remember right now but error seems like:... (2 Replies)
Hi,
I've to wait until a file generated and once its generated, source another script in Linux terminal.
Please help me as this is very very urgent.
The code should be something like
if ( -e "/abc/xyz/a.txt )
source aaa.csh
else
sleep
This should be repeated till the if... (4 Replies)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Discussion started by: shankarpanda003
3 Replies
LEARN ABOUT DEBIAN
test::reporter::transport::file
Test::Reporter::Transport::File(3pm) User Contributed Perl Documentation Test::Reporter::Transport::File(3pm)NAME
Test::Reporter::Transport::File - File transport for Test::Reporter
VERSION
version 1.58
SYNOPSIS
my $report = Test::Reporter->new(
transport => 'File',
transport_args => [ $dir ],
);
DESCRIPTION
This module saves a Test::Reporter report to the specified directory (using the "write" method from Test::Reporter.
This lets you save reports during offline operation. The files may later be uploaded using "Test::Reporter->read()".
Test::Reporter->new->read( $file )->send();
USAGE
See Test::Reporter and Test::Reporter::Transport for general usage information.
Transport Arguments
$report->transport_args( $dir );
This transport class must have a writable directory as its argument.
METHODS
These methods are only for internal use by Test::Reporter.
new
my $sender = Test::Reporter::Transport::File->new( $dir );
The "new" method is the object constructor.
send
$sender->send( $report );
The "send" method transmits the report.
AUTHORS
o Adam J. Foxson <afoxson@pobox.com>
o David Golden <dagolden@cpan.org>
o Kirrily "Skud" Robert <skud@cpan.org>
o Ricardo Signes <rjbs@cpan.org>
o Richard Soderberg <rsod@cpan.org>
o Kurt Starsinic <Kurt.Starsinic@isinet.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Authors and Contributors.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.12.4 2011-08-11 Test::Reporter::Transport::File(3pm)