Sponsored Content
Top Forums Shell Programming and Scripting Identifying presence and name of new file(s)? Post 302785459 by lupin..the..3rd on Monday 25th of March 2013 04:22:46 PM
Old 03-25-2013
Quote:
Originally Posted by RudiC
Wouldn't the time stamps reflect the download time? And, I'm not sure if verbosity can be increased so you can capture a complete transfer log.
Correct. Time stamps reflect the download time. So if no new files are downloaded, it will be an empty list. If 3 new files are downloaded, it will return the names of those 3 files. Exactly what I need. Files are downloaded at 3 am. The processing script runs at 7:30 am. So any new files present will have the current date.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I test for the presence of a file in Bourne Shell

How do I test for the presence of a file in Bourne Shell (3 Replies)
Discussion started by: vins
3 Replies

2. Shell Programming and Scripting

identifying null values in a file

I have a huge file with 20 fileds in each record and each field is seperated by "|". If i want to get all the reocrds that have 18th or for that matter any filed as null how can i do it? Please let me know (3 Replies)
Discussion started by: dsravan
3 Replies

3. Shell Programming and Scripting

Polling continously for presence of a file

Hi, My os is sun solaris 5.10 and Korn shell scripting. I have a file name like CCNA_EARLY_SWP.w062309 where 062309 is date in mmddyy .This is the value date of the file.(will I need to check continously from 5.00 - 7.00 am daily for this file . If the file has not come at 5 am or 7am... (4 Replies)
Discussion started by: manoj39
4 Replies

4. Shell Programming and Scripting

check presence of input file

My script is taking a file "input.in" as input for running the script. My worry is that i need to execute the script only if the file is present, if it's not don't perform the next commands. Just to have a check at the beginning of the script : If "input.in" exists, then go on. If it's does not... (4 Replies)
Discussion started by: newpromo
4 Replies

5. Shell Programming and Scripting

check file for presence of set of strings

hi everybody, I need a quick help with this issue. I have configuration file in which the following set of strings must be present. I need to check it with the bash script (leading spaces are not significant). Check must be case insensitive. Can anybody help? ... any lines <SECTION... (4 Replies)
Discussion started by: sameucho
4 Replies

6. Shell Programming and Scripting

Identifying the file completion

Hi, A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file. I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming? Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies

7. Shell Programming and Scripting

Check the presence of file >size?

Hi, Following script work fine: #!/bin/bash FILE=$1 if ; then echo Yay else echo Boo fi But I would like to add another condition that if FILE... (3 Replies)
Discussion started by: nrjrasaxena
3 Replies

8. Shell Programming and Scripting

Check presence of trigger file

Hi, I make a sftp connection successfully.My requirement is the script shall execute only after i find a trigger file(dailyreport.OK.psv) in the remote dir. If the trigger file is not present ,the script should exit else it should continue with the rest of the scripts statements. Below code is... (13 Replies)
Discussion started by: samrat dutta
13 Replies

9. Shell Programming and Scripting

Check file presence and delete other file

Hello, I have file all_file.txt at the end of process this file all_file.txt should be deleted only if there is no file present in dir /all_file/tmp/ or in it's sub directory. can you please help me with the peace of code for this. Thanks (2 Replies)
Discussion started by: kumar30213
2 Replies

10. Shell Programming and Scripting

Identifying missing file dates

Hi Experts, I have written the below script to check the missing files based on the date in the file name from current date to in a given interval of days. In the file names we have dates along with some name. ex:jera_sit_2017-04-25-150325.txt. The below script is working fine if we have only... (10 Replies)
Discussion started by: nalu
10 Replies
mmsclient(1M)						  System Administration Commands					     mmsclient(1M)

NAME
mmsclient - send script commands to Media Management server SYNOPSIS
/usr/bin/mmsclient [-f filename] [-A application-name] [-c clientname] [-i instancename] [-n network_config_file] [-P password] [-p portnumber] [-s hostname:port] [-t tag] /usr/bin/mmsclient -h DESCRIPTION
The mmsclient command creates a session with a Media Management (MM) server, enabling you to send Media Management Protocol (MMP) commands to the server and receive responses from that server. When used with the -f option (see below), mmsclient runs a script file that performs MMP operations. See mmsclient_script(4) for a description of the script file. The MMP and the commands in the script file are based, in part, on IEEE 1244, the Media Management System (MMS) standards. To run mmsclient, you must become superuser, or assume the Primary Administrator role. OPTIONS
The following options are supported: -A application-name Specifies the MMS application name to use for the current session. The default application name is MMS. -c client-name Specifies the MMS client from which commands are sent to the MMS server. The default is localhost. Note that this is not the host name for the MMS, which you specify with the -s option (see below). -f filename Specifies the name of the file containing the MMP commands. See mmsclient_script(4) for a description of the script file. -h Display usage information. -i instance-name Specifies the MMS application instance to use for this session. If administrative tasks such as creating or deleting objects are planned for the session, specify the instance as Admin. -n network_config_file Defines the configuration for the application client that runs the script, including the default values. To run the script of MMP com- mands, the application client can be configured explicitly, can use the default values, or can be modified using the values in this XML file. See EXAMPLES. -P password-file Specifies the full path to a file containing the password for the application specified with the -A option. If the command does not contain the -P option, you are prompted for the password. There is no default. -p portnumber Specify port number of MMS server. -s hostname[:port] Specifies the MMS server and, optionally, the port number, to which you send MMP commands. If you do not specify port, the port number defaults to 7151. -t tag Specify a tag for identifying an MMS session. You can match against tag to query information related to a session. The default tag is mmsclient-pid=pid, where pid is the PID of the MMS client. EXAMPLES
Example 1 Example of a Network Configuration File The following example configuration file, net_cfg.xml, specifies the conditions under which the MMP commands are performed: <!-- Client Configuration --> <mms_cfg> <!-- Network Configuration --> <mms_network_cfg host = "localhost" port = "7151" name = "MMS" instance = "admin" language = "MMP" version = "1.0" password = "summer05" <!-- mm_password = "MMS Media Manager" --> ssl_enabled = "false" ssl_cert_file = "/var/mms/ssl/pub/mms.pem" ssl_pass_file = "/var/mms/ssl/pub/mms_pass" <!-- ssl_crl_file = "/var/mms/ssl/pub/mms_crl.pem" --> /> </mms_cfg> Example 2 Running a Script with Default Connections The following command runs a script named test_beginend with the default connections: # mmsclient -f test_beginend Example 3 Specifying a Client by Host Name and Port Number The following command runs a script named test_beginend that connects to an MMS server on a host named x4200 and port number 1492 as the HSM admin: # mmsclient -f test_beginend -A HSM -i admin -t HSM_test_session -s x4200:1492 Example 4 Using a Network Configuration File and Specifying an Interactive Session The following command connects to the MMS server defined in the net_cfg.xml file and runs an interactive session: # mmsclient -n net_cfg.xml EXIT STATUS
0 Success. !=0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmmsu | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
mmsadm(1M), mmsexplorer(1M), mmsinit(1M), mmsclient_script(4), attributes(5) IEEE 1244, IEEE Storage Systems Standards, a set of MMS standards SunOS 5.11 2 Dec 2008 mmsclient(1M)
All times are GMT -4. The time now is 05:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy