Sponsored Content
Top Forums Shell Programming and Scripting Get filesize and checksum of spooled file in a log file ... Post 302579806 by ce_emre21 on Tuesday 6th of December 2011 04:16:18 PM
Old 12-06-2011
Get filesize and checksum of spooled file in a log file ...

Hi All,

I have spooled some data in a file (a.dat, b.dat etc..) and after that I want to get the size and checksum of spooled file (a.dat, b.dat etc..) in a log file(file_info.log).

By the way I dont want lost the previous output file info(Append data).

View of log file that I want to create;
Code:
a.dat, 2567, 123abcdef.
b.dat, 3456, 789defg35.

...

Thanks for your help,
Emre

Last edited by methyl; 12-06-2011 at 05:27 PM.. Reason: please use code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Directory where spooled file is stored

I am spooling a text file to printer under Sun Solaris m/c (solaris 7). I want to know which directory the spooled text file is stored before it goes to printer. B'se my main problem is to find the escape sequence from the text file to get landscape orientation. Now when ever I spool a file... (1 Reply)
Discussion started by: babulilly
1 Replies

2. UNIX for Dummies Questions & Answers

filesize from a file which has the list of files.

i have a file myfile. it has the below entries /temp/firstfile /temp/secondfile and many more.. okay, now, i want to addup all the space occupied by this file hmmm, but i met with a problem in getting each file out. i did a silly command like more myfile | grep temp | ls -ltr and it... (3 Replies)
Discussion started by: yls177
3 Replies

3. Shell Programming and Scripting

Capture output of program to file with limited filesize

I'm working on a script that will perform a backup, save a log of said backup and send the output to me in an email. Everything is working fine so far except that I can't figure out how to specify a maximum file size for the log file. I don't want a runaway log file jamming up the server.... (7 Replies)
Discussion started by: spectre_240sx
7 Replies

4. UNIX for Dummies Questions & Answers

spooled file getting distorted when sending through unix mail

Hi Folks, I'm spooling a file through sqlplus and sending using mailx but the output got distorted in MS-outlook. Thanks in advance (2 Replies)
Discussion started by: chgopi
2 Replies

5. Shell Programming and Scripting

Need help in finding filesize , moving file , gzipping file

Hi , Please help with the following questions 1) how can i find size of a file ? i have written du -k $flname > s1 . Is this right ? Any other better suggeastions ? 2) how do I use mv command for moving the file ? I need the syntax with some examples 3) Command for printing the total... (1 Reply)
Discussion started by: Learning!
1 Replies

6. UNIX for Advanced & Expert Users

Checksum with file permissions and dates ?

find . \! -type p -exec cksum {} \; >> check.out Okay i was able to get the checksum of the files of the directory and sub directories..how do I get the list with the checksum and the file permissions and dates in the same file...now this is driving me crazy...can anyone help me with this ? ls... (3 Replies)
Discussion started by: moe458
3 Replies

7. Shell Programming and Scripting

In Outlook spooled file data is not getting displayed properly

I am fetching a database table in spool file and send that details as a email. The Spooled file content is properly being displayed in UNIX. See Example below : ID|FILENAME |ABCDEF_DT |PROCESSED_DT |STATUS... (4 Replies)
Discussion started by: Ravi_007
4 Replies

8. Shell Programming and Scripting

Needed script to FTP a File and generate a quality checksum file

hi all i want a script to FTP a file and should generate a quality checksum file means when I FTP a file from one server to another server it should generate a QC file which should contain timestamp,no.of records in that file Thanks in advance saikumar (3 Replies)
Discussion started by: hemanthsaikumar
3 Replies

9. Programming

Perl - Moving file based upon filesize in folder

Hi I'm trying to look through a series of directories in A folder, lets just call it A: for example: A/1 A/2 A/3 Etc and I wish to move the files in the folder if they are bigger than a certain size into a structure like below: A/TooBig/1 A/TooSmall/1 A/TooBig/2 A/TooSmall/2... (1 Reply)
Discussion started by: PerlNewbRP
1 Replies

10. Solaris

Checksum different For Same file Created By Two processes

I have one utility in VB which generates attached file(circle.14.mdn_range.properties_VB) & i have created other file(circle.14.mdn_range.properties_UTLFILE) having same contents with UTL_FILE(Oracle running on solaris). But checksum is different for both the files with same contents. Can you... (7 Replies)
Discussion started by: siramitsharma
7 Replies
condor_transfer_data(1) 				      General Commands Manual					   condor_transfer_data(1)

Name
       condor_transfer_data transfer - spooled data

Synopsis
       condor_transfer_data [-help -version]

       condor_transfer_data[-pool   centralmanagerhostname[:portnumber]-name  scheddname][-addr  "<a.b.c.d:port>"]  cluster...	cluster.process...
       user... -constraint expression...

       condor_transfer_data[-pool centralmanagerhostname[:portnumber]-name scheddname][-addr "<a.b.c.d:port>"] -all

Description
       condor_transfer_data causes Condor to transfer spooled data. It is meant to be used in conjunction with the -spooloption of  condor_submit,
       as in

       condor_submit -spool mysubmitfile

       Submission  of  a  job with the -spooloption causes Condor to spool all input files, the user log, and any proxy across a connection to the
       machine where the condor_schedddaemon is running. After spooling these files, the machine from which the job is	submitted  may	disconnect
       from the network or modify its local copies of the spooled files.

       When  the job finishes, the job has  JobStatus = 4, meaning that the job has completed. The output of the job is spooled, and condor_trans-
       fer_dataretrieves the output of the completed job.

Options
       -help

	  Display usage information

       -version

	  Display version information

       -pool centralmanagerhostname[:portnumber]

	  Specify a pool by giving the central manager's host name and an optional port number

       -name scheddname

	  Send the command to a machine identified by scheddname

       -addr <a.b.c.d:port>

	  Send the command to a machine located at "<a.b.c.d:port>"

       cluster

	  Transfer spooled data belonging to the specified cluster

       cluster.process

	  Transfer spooled data belonging to a specific job in the cluster

       user

	  Transfer spooled data belonging to the specified user

       -constraint expression

	  Transfer spooled data for jobs which match the job ClassAd expression constraint

       -all

	  Transfer all spooled data

Exit Status
       condor_transfer_datawill exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.

Author
       Condor Team, University of Wisconsin-Madison

Copyright
       Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of  Wisconsin-Madison,  Madison,  WI.  All  Rights  Reserved.
       Licensed under the Apache License, Version 2.0.

       See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu

								  September 2012					   condor_transfer_data(1)
All times are GMT -4. The time now is 01:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy