Schedule the execution every day of a PDF report - report

I need to schedule the execution every day of a PDF report, I managed to schedule the execution of a job.
Thanks in advance.

I managed to do it, using Pentaho data integration and the Windows Task Scheduler.
If someone needs to do it, tell me.

You can use 'Start' object in 'Job' and double click to set schedule times.
your transform :
start -> get_transform -> end
if you want use windows scheduler use pentaho kettle or carte and start in windows scheduler .

Related

Task Scheduler Last Run Result (0x8000808C)

What is the last run (0x8000808c) code mean in the windows task scheduler?
I checked all the references here but this code doesn't exist.
I have no idea if the task was successful or not. The event history shows it was successfully executed but the data related to it doesn't reflect to it.
This code (0x8000808C) is because the program or script that the task calls did not run correctly, the suggestion not only for this error code but for all others is to use the Event Viewer.
Open the Event Viewer, in my case the task ran an application so I opened Event Viewer, expanded Windows Logs -> Application, searched for the application name and there was the error, in my case the problem was with the ASP.NET version Core Runtime.

Alternative to Selenium scripts to download web data

I have to extract web data every day,to automate it I am using selenium recording script if i run recording script it will automatically download data based on my recording.Now i want alternative to do this task which has to do changes the dates and a few other changes in the website, then clicks the download button.
Thanks in advance.
#raju your question is very generic.Please make it more precise next time.
As per my understanding search for parameterization in selenium ide should help you. These are very basic case. Try with this at least something. Still you face some issue post the query with complete error log. We will be more than happy to help you.

How can i schedule an R code to run without having my PC on? [web-hosting]

I am wondering if it's possible to have relatively simple R code pull and feed data into say... a text file attached to an email without having to keep my PC on.
I have a web-scraping code here that use:
library(XML)
library(stringr)
to scrape some web data which i would like to save daily..
Putting that on a loop that runs every 24 hours would be relatively easy, but i don't want to keep my PC on or not able to use the R environment while this is running.
what are my options?
Suggest you spin up an AWS EC2 instance and set the script to run as a cron job on a daily basis.
Here's some resources:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html
http://www.louisaslett.com/RStudio_AMI
http://strimas.com/r/rstudio-cloud-1
Requires a little bash but if you aren't familiar it's definitely worth learning.
If you're on Windows, you can schedule batch R scripts to run via the Task Scheduler. +1 for AWS and cron though - super easy to get going once you establish the EC2 instance and get R running on it.

How to export Windows Scheduled task history

On Win2008 R2 - Is there an interface I can go to, or a command I can run, to export the history of one particular task from Windows Task Scheduler? I'll even take all the tasks and then filter the results. The best I can come up with so far is to search in the Event Viewer, using the Event Log C:\Windows\System32\winevt\Logs\Microsoft-Windows-TaskScheduler%4Operational.evtx for the task in question, and record by hand the time of day it stopped.
Thanks,
Dan
I found logs for Task Scheduler in
C:\Windows\System32\winevt\Logs\Microsoft-Windows-TaskScheduler%4Operational.evtx
When I double click on the file it opens the Event Viewer in that file.
Also, opening the Event Viewer from Administrative Tools I can drill down to Event Viewer >> Applications and Services Logs >> Microsoft >> Windows >> TaskScheduler >> Operational to view the logs I would see from the Task Scheduler Library.
hope this helps -
Alan
With the release v0.19.0 of the Windows Exporter (maintained by the Prometheus Community), you can export Scheduled Task metrics, which can then be scraped by a monitoring solution of your choice (Prometheus itself i.e.) if that's an option for you.

Automatic E-mailing of pdf graphical output at specific times from R

I have some scripts I'd like to run each morning at 6am. These scripts produce some pdfs of graphical output into a file: foo.pdf
I'd like my system (let's say Win 7, >= R 2.13) to email me these pdf's once the system has finished running the scripts.
Which is the best package - and most robust way of setting it up - to have these reports emailed to me directly via attachment from R?
Are there any 'cool' extensions to this (like sink() -ing report text output into the body of the email)?
Thanks in advance for any advice.
You can harness the power of a package that can handle emails coupled with a chron job. On Windows 7, I've achieved something akin to this using Windows Task Scheduler. Basically, you set it to run a particular script at a specified time.
I have a script running daily, and had lots of problems to get it to run. Take a look at Roman's link for the attachment and R code first. This is about the non-R part in Windows 7.
I had problems running the R script directly from Windows Task Scheduler, so I scheduled a batch file to run every day as follows:
#echo on
"C:\Rpath\R-2.15.1\bin\i386\Rcmd.exe" BATCH "C:\filepath\filetorun.R"
That's about the simplest you can get, but Quick R was a starting point.
Depending on your computer's settings, you might have to fiddle with the task scheduler. If it's a server type that's always on, then you shouldn't have too many issues (and you know what you're doing). If you have to log off and use a password to login or access a shared drive, you'll have to do some of the following. Also, I don't know if admin rights is a necessity or not.
Open Task Scheduler, make a new task, and open its properties window.
Under General, check the user account and select "Run whether user is logged on or not" and UNcheck "Do not store password." This will allow your script to run if you're logged off (I don't think it works when Locked). When you click Ok, it will ask for your password.
Basic setup: The Trigger is "On a schedule" and Advanced is Enabled. Under Actions, select "Start a program" with the Program/script as the .bat file.
Under Conditions, uncheck "Start the task only if comp is idle" and check "Wake the computer to run this task." Under Settings, check "Allow task to be run on demand," check "If the running task does not end..," and at the bottom, select "Stop the existing instance." These options might be necessary, though I'm not as sure about these.
Another trick is if your company has you switch passwords every once in a while. Open and close the task after changing so that it asks for your password again. Enter the new one or else it can't log in and won't run your script.

Resources