Questions tagged [runcommand]
53 questions
1
vote
1 answer
set datetime inside of runCommand in mongoDB
I have a problem with date and datetime inside runCommand of MongoDB. It has been saving my date in null. I could not use ISODate() because it give a error. The variable $date hasn't show me a error but it storged a null value.
This is the mongoDB's…

JhonQO
- 368
- 3
- 7
1
vote
0 answers
How to create a MongoDB query with nested db.runCommand inside a find clause using java driver
I'm using three collections (employee, department and location ) in a mongodb database. I need to list all departments of employee lives in a city starts with "P".
I have created following query using nested db.runCommand which is working fine in…

Yogesh Yadav
- 11
- 2
1
vote
1 answer
Run MongoDB commands from C#
I want to be able to run any MongoDB command from C#. I know that this can be done. I start with a simple example, instead of using the dropDatabase method from the C# driver I am trying to drop a database using the db.runCommand method as follows.…

user2307236
- 665
- 4
- 19
- 44
1
vote
1 answer
Restart windows from asp.net page using command prompt and System.Diagnostics.Process
I'm trying to restart windows server 2003 from inside a web service using System.Diagnostics.Process.
public static string Dorestart()
{
var si = new Process();
si.StartInfo.UserName = "administrator"; // Credentials of administrator user
…

Reza Mortazavi
- 329
- 3
- 14
1
vote
1 answer
Run Command Prompt Code in Vb.net
I can run " Dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:E:\sources\sxs /LimitAccess " code in Command Prompt.
What I wan't to do is to run this code through Vb.net application.

Ramith Hettiarachchi
- 107
- 1
- 9
1
vote
2 answers
Detect remote runcommand failed when running msdeploy
I am running msdeploy (in powershell, as part of a script) with a runcommand provider as a postsync step, which runs a batch file on the remote machine. The batch file just executes exit /b 1 which causes it to return a failure code.
I am using…

Matt
- 2,984
- 1
- 24
- 31
0
votes
0 answers
How to configure run command in replit using node.js to make the different files executed separately without updating configuration manually overtime
Problem
I use replit to practice code online while creating files to refer to each object in my programming study. But whenever I opened a different file and intended to run it in console (not shell), it can only run the default file that I've…

TeguhAnggar
- 11
- 4
0
votes
1 answer
Expected: ',', received: ']' AWS SSM RunShellScript
I want to update many instances, so I have made a script with this command:
aws ssm send-command --instance-ids "$y" --document-name AWS-RunShellScript --parameters commands='yum -y update; needs-restarting -r; if \[ $? -eq 1 \]; then exit 194'…

Casey
- 444
- 1
- 7
- 22
0
votes
0 answers
Error Running terminal command in Mac App
I'm trying to run terminal command pluginkit -m in my mac app but it returns message match: unauthorized discovery flag (PKDiscoverAll).But if I run ls command it works fine.
Can someone please explain how can I run pluginkit -m command or point me…

mansoor ali
- 311
- 3
- 3
0
votes
0 answers
How to give a role permissions to run getCommand({ping:1}) in MongoDB?
I need to grant access to a role in MongoDB to allow it to run getCommand({ping:1}).
What kind of action/resource is it?

Phil Dunphy
- 3
- 3
0
votes
0 answers
Run command in windows vm in azure using python sdk
I'm able to execute the run command using python for Linux Azure VM's as mention in this link
For Windows, it works for a basic print out such below.
run_command_parameters = {
'command_id': 'RunPowerShellScript',
'script': [
'$arg1…

Alex
- 11
- 4
0
votes
0 answers
Trying to run a powershell script through Systems manager Run Command
So I have a PowerShell script on my aws windows server, and I'm trying to run that script through AWS Run Command. I've tried Start-Process C:\Path\NameOfPowerShellScript.ps1. Unfortunately it doesn't work. What my code does is install java-jre on…

ADEKOLA ADELEKAN
- 1
- 1
0
votes
0 answers
Running Shell runtime command with spaces from VBA
I'm trying to run the following command in VBA:
Call Shell("C:\Program Files (x86)\Microsoft Office\Office15\MSACCESS.EXE Y:\Sales Team\Sales_Price_Database.accde /runtime").
It fails on the space between Sales and Team. Without that space it works…

Michel Verberg
- 21
- 1
0
votes
0 answers
How to run shell script on VM via python script?
I am trying to run shell (Bash script) running against Azure Linux VM run via Python script. I have managed to run simple commands, but I am not able to run a script.
This is working:
run_command_parameters = {
'command_id':…

sunrrrise
- 1
- 1
0
votes
3 answers
How can I made the Run button in Replit work on this sequence?
So, I use code that can for some reason only be run in console using the command: 'python ./Ghost.py', and when I put that in the .replit file as the run command, it turns on and back off immediately. I want to know how to make the 'Run' button…

Shkeffy
- 1
- 1