cognos run report via command line - cognos

We have a lot of reports that requires us to save to local via command line, I am trying to using some script .bat to batch run cognos reports and save. How can I achieve that without going into cognos interface?
Thanks.

Related

Webinspect Integration with Jenkins using macro file

I am trying to integrate the Webinspect with Jenkins using command and I am trying to pass my macro file which I generated manually from Webinspect UI.
cd C:\Program Files\Fortify\FW
wi.exe -u "http://demo.testfire.net/" -ps 1004 -macro "C:\Program Files\Fortify\FW\workflow.webmacro" -ep "C:\Program Files\Fortify\FW\workflow.fpr" -r "Executive Summary"; Vulnerability -y "Standard" -f "C:\Program Files\Fortify\FW\Webinspectmaxro.pdf" -gp
Above command is the one which I am using for integration.
Issue
I am able to initiate the scan but my requirement is like I want scan to be initiated as workflow Driven scan using the macro.
The macro I generated is using workflow macro(session based) I want my command to take only those urls in macro but not to crawl all web page.
The same macro file took only 13 min in manual (I have initiated as workflow driven scan) where command is taking 9 hours(which means it is scanning all web page) and also differ in vulnerability count.
I just want to know how to initiate workflow driven scan using wi.exe(using CLI).
Or pls suggest the any other way to initiate workflow driven scan from Jenkins.
Thanks

Using ArangoDB through the command line not working

Thanks for taking the time, so - Arango is installed and the WebUI has been working fine. I've been doing the tutorials and finished the basics, but attempting to move on and import my own data I'm getting stuck.
I stored my data in a google sheet so I exported that for ingest but then trying to access the command line tools to ingest it, I hit a hurdle of "command not found". Trying "arangoimport" for example as recommended here, or "arangimp" and other recommendations I found online from a search. I also tried other command line tools and had the same issue.
Where should I be running this command from? (and how can I get there?) If the command can and should be run from the first terminal window I open, then please can you tell me what I'm missing and need to do :)
Thanks,
Josh
Open terminal and use cd to go to the directory in which arangoimport.exe is stored.
When the terminal is in that directory you can run the arangoimport command.

Django custom management commands as windows scheduled task

I'm trying to run a Django2.1 custom management command from within a python3 virtual environment on a windows server with the task scheduler. The command I've tried work as follows:
C:\Users\dev\Programs\Python3\Scripts\python.exe C:\Users\dev\Programs\Python3\Scripts\access-api\my_project\manage.py accessapi
The script runs just fine if I also execute it as a .bat file but when I try to create a scheduled task and run the .bat script, the task scheduler fails or says it completed but the data that I'm looking to update, doesn't get updated. I managed to find this reddit post about this same issue but it doesn't seem to work as described.
The script itself isn't a pretty one but it works using pyodbc drivers to run queries in from an Access 2010 database and convert to it JSON, then update required records using Django's API in a PostgreSQL database.
"Actions" Tab in task property use your commands to configure as:
Program script field:
C:\Python36\python.exe
Add Argumenrs(optional) field:
"C:\Users\dev\Programs\Python3\Scripts\access-api\my_project\manage.py" accessapi

Run a batch file on a remote desktop from VBA

I am new and seeking help. I manually open a remote desktop to a server and run a batch file I have sitting on that desktop. I want to do this thru VBA. I don't want to see the remote desktop and I would like to know when the batch file is finished running. Here is the code I have found so far. It brings me to the password screen for the remote desktop and I must take it from there manually. What do I need to add to the code to get this done.
TestVar = Shell("C:\windows\system32\mstsc.exe /v:" & "IP Address", 1)
The path for the batch file on the remote is: "C:\users\path\desktop\batch.bat"
If you aren't worried about the logon screen, and want to execute commandfs remotely, you need to take a look at Windows PowerShell
MS Technet - PowerShell INVOKE Command to execute a script on one or more remote computers
MS Technet - Running Remote Commands with PowerShell
I think this immensely popular StackOverFlow topic could prove useful too (See the answer with 200 upvotes by Jason R. Coombs
Stack Overflow: how to use ssh to run shell script on a remote machine

Running a command in comment prompt from c#.net console application

I just want to run a query with parameters in command prompt using c#.net code ?
and is it possible to copy the file from one path to another path through command prompt in c# code
waiting for your valuable commands
How to Execute a Command in C#
Useful commands

Resources