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 (3 Replies)
Discussion started by: vins
3 Replies
2. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
puppet-plugin
PUPPET-PLUGIN(8) Puppet manual PUPPET-PLUGIN(8)
NAME
puppet-plugin - Interact with the Puppet plugin system.
SYNOPSIS
puppet plugin action
DESCRIPTION
This subcommand provides network access to the puppet master's store of plugins.
The puppet master serves Ruby code collected from the lib directories of its modules. These plugins can be used on agent nodes to extend
Facter and implement custom types and providers. Plugins are normally downloaded by puppet agent during the course of a run.
OPTIONS
Note that any configuration parameter that's valid in the configuration file is also a valid long argument, although it may or may not be
relevant to the present action. For example, server is a valid configuration parameter, so you can specify --server <servername> as an
argument.
See the configuration file documentation at http://docs.puppetlabs.com/references/stable/configuration.html for the full list of acceptable
parameters. A commented list of all configuration options can also be generated by running puppet with --genconfig.
--mode MODE
The run mode to use for the current action. Valid modes are user, agent, and master.
--render-as FORMAT
The format in which to render output. The most common formats are json, s (string), yaml, and console, but other options such as dot
are sometimes available.
--verbose
Whether to log verbosely.
--debug
Whether to log debug information.
ACTIONS
download - Download plugins from the puppet master.
SYNOPSIS
puppet plugin download
DESCRIPTION
Downloads plugins from the configured puppet master. Any plugins downloaded in this way will be used in all subsequent Puppet activ-
ity. This action modifies files on disk.
RETURNS
A list of the files downloaded, or a confirmation that no files were downloaded. When used from the Ruby API, this action returns an
array of the files downloaded, which will be empty if none were retrieved.
EXAMPLES
download
Retrieve plugins from the puppet master:
$ puppet plugin download
Retrieve plugins from the puppet master (API example):
$ Puppet::Face[:plugin, '0.0.1'].download
COPYRIGHT AND LICENSE
Copyright 2011 by Puppet Labs Apache 2 license; see COPYING
Puppet Labs, LLC June 2012 PUPPET-PLUGIN(8)