running sage 300 ERP macro without triggering a login? - sage-erp

I use sage 300 erp heavily and am setting up some macros, the main issue is that they prompt me to sign in each time. If I want to run a task in the background each day on a schedule to print out a report to a directory, it requires me to babysit it. Is it possible to run my sage 300 erp macros without logging in or leaving sage 300 erp logged in?

Yes, you can run Sage macro without logging into Sage. You can setup a task scheduler to run the macro available here:
http://www.greytrix.com/blogs/sageaccpacerp/2013/05/15/run-vba-macro-without-logging-to-sage-300-erp/
You have to call your specific macro(s) from it. I'm trying to do the same setup myself.

Related

Get Dell KACE to run a script outside of the normal interval

Is it possible to get Dell KACE to run a script on a client machine immediately when some condition happens?
I need the script to run on the agent machine within 1 minute of the condition happening (like a file appearing). This is because I need an application to update to a newer version only when a user action happens.
If I set the inventory interval very low and use a custom condition it might affect the general performance of KACE, since there are many client machines.
It's impossible to do this.
I can send an inventory via the API even without admin rights. But the inventory checks/results cannot be linked to scripts in KACE, so that gets me nowhere.

AS/400 End User - run keystrokes automatically

I'm a novice with AS/400. I have a bit of coding experience and know that there's always an access to the backend if you're clever enough. But developers in my organisation said that it's hard to communicate with the server and make it run things remotely.
So I'm wondering if you anyone's got any ideas how I can schedule a simple task. I login to the "Personal Communication", which is the client app. Then I go to a certain menu, ie I543, enter a parameter "1". And Press "ENTER" to run a report which have a file output.
I know there is that "Macro" function within Personal Communication. But that relies on send keys which does not work on a locked screen, nor do I want to activate it manually, which really defies the point of automation.
I was hoping I can schedule a simple call command somehow to activate some kind of procedure. Just need to know if possible and where to start looking? Thanks.
Last millennium's AS/400 and today's IBM i both have a basic job scheduler built in.
From a command line WRKJOBSCDE.
You need to find out what happens when you select menu I543 option 1. Assuming it's a simple CALL MYRPT or SBMJOB CMD(CALL MYRPT) then adding a scheduled job to run the report is easy.
However, you probably don't have the authority to do so. Nor should your developers necessarily be able to do so. Your system administrator is the right person. In a small shop, that might be the guy doing development. In a large one, it's another person or team.
But your developers should have at least pointed you toward the admin and the job scheduler.

jboss operations network reports

I have configured a JON server 3.1.0 and agents allowing to monitor JBoss AS.
I've set alerts to tell us when the process goes down and I now would like to export reports, especially with the availability/unavailability periods of the different processes.
It seems that the predefined reports concern more the utilization of the CPU/memory, but not the availability.
The purpose would be to export this report at the end of every month with the unavailability periods over the past month.
Is this possible? Does this exist by default? If yes, how can I access to this? If not, is there a way to get it?
Thanks for you support
JON 3.1.0 should contain the REST-api as tech preview though (not sure). If this is in, you can use this to access the availability history e.g. via a http
GET localhost:7080/rest/resource/{id}/availability/history
with {id} being the id of the resource you need the report for.
Another option is the CLI, where you can write the output of the cli commands to a file.

How to handle large amounts of scheduled tasks on a web server?

I'm developing a website (using a LAMP stack) which must handle many user-made scheduling tasks. It works as following: an user creates an event and sets a date, and others users (as many as 63) may join. A few hours before the set date, the system must email each user subscribed to that event. And that's it.
However, I have never handled scheduling, and the only tools I know (poorly) are cron and at. My plan is to create an at job for each event, which will call a script that gets all subscribers emails and mails them.
My question is: is my plan/design good? Is it scalable? Are there better options that I should be aware of?
Why a separate cron job for each event? I've done something similar thing for a newsletter with a cron job just running once per hour and if there are any newsletters to be sent it just handles them. In your case you'd have a script that runs once every hour and gets a list of users for events that happen in the desired time interval since.
It will work. As far as scalability, at the minimum make sure that the script runs in it's own process so it doesn't bog down the server unnecessarily.
Create a php-cli script perhaps?
I'm doing most of my work in Rails nowadays, and there's a wealth of background processing libraries one of them is Resque it uses the redis server to keep track of the jobs
I found a PHP clone https://github.com/chrisboulton/php-resque
Might be overkill for your use case, but give it a shot perhaps
If you would consider a proper framework that uses an application server (and not a simple webserver), Spring has a task scheduling layer that's simple to use. Scheduling jobs on the server really requires more than what a simple LAMP install can do, but I haven't used PHP in a while so maybe there's an equivalent.
Here's an article that compares some of your options.

using PowerShell to create automated systens

I'm looking forward to develop an automated notification and logging-off system that
notifies and logs off accounts from a computer. So far I planned an example when a class is
scheduled, except accounts that are registered on the scheduled class. It may
notify the logged-in users a certain period of time before the class time and
log them off just before the class time. Or, it could limit their access, for
example to the printer once the class has started.
So my Question is can I use PowerShell to develop this project ? How far can it be useful, or I should think about using python!
Thanks Fellas!
I'm not sure PowerShell brings anything special to the party. What you are talking about would require a PowerShell session running in the background and perhaps even tying into some sort of eventing, perhaps with the timer class. It might be just as easy to automate something using the task scheduler. At the appointed time check the logged on user and if they don't meet the requirement log them off. You could use PowerShell to create the tasks and handle the processing or any other language really.