Forecast of jobs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Forecast of jobs
# 1  
Old 06-28-2017
Forecast of jobs

Hello,
I'm looking for forecast of Autosys Jobs, along with their status, in a specific time period.

I tried job_depends and autorep.
  1. Problem with autorep is, I Cannot use from and to time, like I can use with job_depends, but the results are in a simple single line format for each job, with when they were last run etc.

    Provided '-r 7' I can retrieve jobs for past 7 days, but I need for future or past, depending on the time, which the user specifies from the app.
  2. Problem with job_depends, is that, it gives me lot of unwanted(in my case) information, like dependant jobs and atomic conditions etc., which is really hard to filter the results.

All I need is JobName, current job status(hold, ice, terminated, etc.), in a specified time period.


Thanks, in advance.

Last edited by rbatte1; 06-29-2017 at 12:31 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to run multiple jobs and it's dependent jobs

I have multiple jobs and each job dependent on other job. Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE. I need an help how to start. Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies

2. Shell Programming and Scripting

waiting on jobs in bash, allowing limited parallel jobs at one time, and then for all to finish

Hello, I am running GNU bash, version 3.2.39(1)-release (x86_64-pc-linux-gnu). I have a specific question pertaining to waiting on jobs run in sub-shells, based on the max number of parallel processes I want to allow, and then wait... (1 Reply)
Discussion started by: srao
1 Replies

3. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

4. Shell Programming and Scripting

Shell script for weather / forecast

#!/bin/sh #Argentina Only :s # This script requires curl and iconv, iconv is because they do not use Weather Service utf-8 ¬¬ # 87938 = Ushuaia # 87934 = Rio Grande # 87418 = Mendoza # 87582 = Capital Federal # 87692 = Mar del Plata # 87480 = Rosario # 87344 = Cordoba # 87371 = Santa Fe ... (8 Replies)
Discussion started by: yamirokuay
8 Replies

5. Shell Programming and Scripting

at jobs.

Please suggest how can i modify or change the at jobs ? (4 Replies)
Discussion started by: anupdas
4 Replies

6. Solaris

at jobs

how to schedule a reboot using the at jobs ? (3 Replies)
Discussion started by: priky
3 Replies

7. Shell Programming and Scripting

background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help. $cat run_job.ksh #!/usr/bin/ksh #################################### typeset -u SCHEMA_NAME=$1 ... (1 Reply)
Discussion started by: GrepMe
1 Replies

8. UNIX for Advanced & Expert Users

jobs

I am running this script below as a cron job for user root. In fact I set this job early last week and expected it to delete archive logs older than 7 days, but doesn't work - just displays the echo messages and no error. Can somebody advise me the probable causes ?? DAY_AFTER=7; export... (1 Reply)
Discussion started by: vbaskar
1 Replies
Login or Register to Ask a Question
Weather::Com(3pm)					User Contributed Perl Documentation					 Weather::Com(3pm)

NAME
Weather::Com - fetching weather information from weather.com SYNOPSIS
#!/usr/bin/perl -w use Weather::Com::Finder; # you have to fill in your ids from weather.com here my $PartnerId = 'somepartnerid'; my $LicenseKey = 'mylicense'; my %weatherargs = ( 'partner_id' => $PartnerId, 'license' => $LicenseKey, 'language' => 'de', ); my $weather_finder = Weather::Com::Finder->new(%weatherargs); my @locations = $weather_finder->find('Heidelberg'); foreach my $location (@locations) { print "Found weather for city: ", $location->name(), " "; print "Current Conditions are ", $location->current_conditions()->description(), " "; } DESCRIPTION
Weather::Com provides three interfaces to access weather information from weather.com. Except from the main high level interface, there is also a simple, very easy to use one called Weather::Com::Simple. And if you want, you can also use the low level interface that is the basis for the two high level interfaces, directly (Weather::Com::Cached or even Weather::Com::Base). Please refer to the POD of these modules directly for detailed information. The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com <http://www.weather.com/services/xmloap.html> LOCALIZATION
Weather-Com uses Locale::Maketext for the l10n. Foreach language there has to be package Weather::Com::L10N::[langcode] (e.g. Weather::Com::L10N::de). Localization is new with version 0.4 of Weather-Com. Therefore, there are not too many languages supported, yet. If one wants to create such a language definition package for a language that is not part of this module, please do the following: 1. check my homepage to verify that the language package has not been created by someone else, yet (<http://www.schnuecker.org/index.php?weather-com>). 2. contact me to verify if anybody else already is already translating into this language 3. just do it and send me your new language package. It then will be first put onto my website for download and then it will be part of the next release. Dynamic Language Support With version 0.5 of Weather-Com I have introduced a new feature called dynamic language support. The language for all textual attributes that usually are translated in your default language you chose while creating your "Weather::Com::Finder" instance can now dynamically be changed on a per-method-call basis. Have a look at this example: #!/usr/bin/perl -w use Weather::Com::Finder; # you have to fill in your ids from weather.com here my $PartnerId = 'somepartnerid'; my $LicenseKey = 'mylicense'; my %weatherargs = ( 'partner_id' => $PartnerId, 'license' => $LicenseKey, 'language' => 'en', ); my $weather_finder = Weather::Com::Finder->new(%weatherargs); my @locations = $weather_finder->find('Heidelberg'); foreach my $location (@locations) { print "Found weather for city: ", $location->name(), " "; print "Current Conditions are ", $location->current_conditions()->description(), " "; # HERE WE USE DYNAMIC LANGUAGE SUPPORT print "That is in German: ", $location->current_conditions()->description('de'), " "; } As you can see in this example, you can provide a language tag to a method that returns textual information. If you want to find out if the dynamic language support is already implemented for a specific attribute of one Weather-Com class, have a look at the corresponding packages POD. TUTORIAL
The usual way to use the Weather::Com module would be to instantiate a Weather::Com::Finder that allows you to search for a location by a search string or postal code or whatever weather.com may understand. The finder returns an arrayref or an array of locations (depending on how you call the "find()" method). Each location is an object of Weather::Com::Location. The locations consist of location specific data, a Weather::Com::CurrentConditions object, a Weather::Com::Forecast object and a Weather::Com::Units object. Configuration parameters You will need a configuration hash to instantiate a Weather::Com::Finder object. Except of the partner_id and the license all parameters are optional and have sensible defaults. use Weather::Com::Finder; my %config = ( partner_id => 'somepartnerid', # mandatory license => 'somelicensekey' # mandatory language => 'de', units => 's', cache => '/tmp/weather', timeout => 300, debug => 1, proxy => 'http://some.proxy.de:8080', proxy_user => 'myaccount', proxy_pass => 'myproxy_pass' ); The valid parameters are: partner_id => 'somepartnerid' To be allowed to fetch weather information from weather.com you need to register (free of charge) to get a so called Partner Id and a License Key. license => 'somelicensekey' See partner_id. language => 'somelanguagecode' weather.com returns some textual data to describe the weather conditions, uv index, moon phase, wind direction, etc. If one specifies a valid language as configuration parameter, this textual descriptions are translated into that language. If one spec- ifies a language for that there's no translation, the objects will return the english texts. cache => '/any/path' Maybe you want to define a special path to put the cache files into. The cache directory defaults to ".". units => s | m This parameter defines whether to fetch information in metric (m) or US (s) format. Defaults to 'm'. timeout => some integer (in seconds) The timeout for LWP::UserAgent to get an HTTP request done usually is set to 180s. If you need a longer timeout or for some reasons a shorter one you can set this here. Defaults to 180 seconds. debug => 0 | 1 Set debugging on/off. Defaults to 0 (off). proxy => 'none' | 'http://some.proxy.de:8080' Usually no proxy is used by the LWP::UserAgent module used to communicate with weather.com. If you want to use an HTTP proxy you can specify one here. proxy_user => undef | 'myuser' If specified, this parameter is provided to the proxy for authentication purposes. Defaults to undef. proxy_pass => undef | 'mypassword' If specified, this parameter is provided to the proxy for authentication purposes. Defaults to undef. Weather::Com::Finder Usually one would start by searching for a location. This is done by instantiating a Weather::Com::Finder object providing all necessary information about the weather.com license, the proxy if one is needed, etc. my $finder = Weather::Com::Finder->new(%config); Then you call the finders "find()" method to search for locations whose name or whose postal code matches against the searchstring. The finder then returns an array (or arrayref) of Weather::Com::Location objects. # if you want an array of locations: my @locations = $finder->find('Heidelberg'); # or if you prefer an arrayref: my $locations = $finder->find('Heidelberg'); For further information please refer to Weather::Com::Finder. Weather::Com::Location The Weather::Com::Location object contains information about the location itself (longitude, latitude, current local time, etc.), a Weather::Com::Units object that contains all information about the units of messures currently used with this location, and a Weather::Com::CurrentConditions object containing the current weather conditions of the location. foreach my $location (@locations) { print "Found location with name: ", $location->name(), " "; print "The longitude of this location is: ", $location->longitude(), " "; } All information in the Weather::Com::Location object is updated with each single call of one of its methods corresponding to the caching rules implemented in Weather::Com::Cached. For detailed information about the Weather::Com::Location class please refer to Weather::Com::Location. Weather::Com::Units The units class provides all units of measure corresponding to the data of the location object. You'll get an instance of this class by calling the "units()" method of your location object. For detailed information about the Weather::Com::Units class please refer to Weather::Com::Units. Weather::Com::CurrentConditions Each location has a Weather::Com::CurrentConditions object accessible via its "current_conditions()" method. my $conditions = $location->current_conditions(); print "Current temperature is ", $conditions->temperature(), "oC "; print "but it feels like ", $conditions->windchill(), "oC! "; Anytime you call a method of your Weather::Com::CurrentConditions object, its data is refreshed automatically if needed according to the caching rules. For detailed information about this class please refer to Weather::Com::CurrentConditions. Weather::Com::Forecast Each location has a Weather::Com::Forecast object to access weather forecasts. weather.com provides up to 9 days of forecast - or 10 days if one wants to count day 0 which is today in most cases. my $forecast = $location->forecast(); print "Max. temperature tomorrow will be ", $forecast->day(1)->high(), "oC "; Any time you call a method of your Weather::Com::Forecast object, forecast data is updated if necessary. For detailed information about this class please refer to Weather::Com::Forecast. Other classes There are a some other classes that are used to represent groups of weather data like wind (speed, direction, etc.), UV index, air pres- sure, etc. Objects of these classes belong to objects of class Weather::Com::CurrentConditions or Weather::Com::Forecast that will be introduced with the next release. These objects data will only refresh when you call the corresponding method of the parent object. For detailed information about these classes please refer to their own POD. Classes available with this version are: Weather::Com::AirPressure Provides access to the barometric pressure data. For detailed information about this class please refer to Weather::Com::AirPressure. Weather::Com::UVIndex Provides access to the uv index of the parent object. For detailed information about this class please refer to Weather::Com::UVIndex. Weather::Com::Wind Provides access to wind speed, maximum gust, direction in degrees, etc. EXTENSIONS
If you plan to extend these module, e.g. with some other caching mechanisms, please contact me. Perhaps we can add your stuff to this mod- ule. SEE ALSO
Detailed documentation of the main interface Weather::Com::Finder, Weather::Com::Location, Weather::Com::Units, Weather::Com::CurrentConditions, Weather::Com::AirPressure, Weather::Com::UVIndex, Weather::Com::Wind Detailed documentation of the Simple API Weather::Com::Simple Detailed documentation of the low level interface Weather::Com::Cached and Weather::Com::Base BUGS
/SUPPORT/PRE-RELEASES If you want to report a bug, please use the CPAN bug reporting tool. If you have any question, suggestion, feature request, etc. please use the CPAN forum. If you are looking for fixes, pre-releases, etc. have a look at my website <http://www.schnuecker.org/index.php?weather-com>. AUTHOR
Thomas Schnuecker, <thomas@schnuecker.de> COPYRIGHT AND LICENSE
Copyright (C) 2004-2007 by Thomas Schnuecker This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The data provided by weather.com and made accessible by this OO interface can be used for free under special terms. Please have a look at the application programming guide of weather.com (<http://www.weather.com/services/xmloap.html>) perl v5.8.8 2007-07-09 Weather::Com(3pm)