Questions tagged [command]

186 questions
0
votes
1 answer

looking for an alternative to echo to write data to a file so it can be invoked via sudo

Background: when run on a unix box Tenable.io (nessus) will try to create a tag file in /etc/ with a unique string. Presumably so it can identify the machine if the hostname or IP changes. It does this by "sh -c \"echo…
Russell Fulton
  • 201
  • 1
  • 3
  • 17
0
votes
2 answers

Azure App Service Plan - Specify App Size with PowerShell

I'm trying to deploy an app service plan (ASP) in the premium tier using powershell. I can deploy the ASP successfully but the ASP defaults to P2v1 which is not what I want. I need the ASP to be set to P2V2 in the premium tier. I can't figure out or…
0
votes
0 answers

Is there a command to list all active maldet scans?

I relatively often run 2 or more scans on a server simultaneously (unfortunately some servers contain many users that manage to get their files infected simultaneously) and on many of those occasions a command that would list how many scans are…
0
votes
0 answers

Cronjob stopped working. But cron and php script still work?

I did a ImageMagick install on my CentOS webserver and afterwards my cronjobs do not work anymore. I have cronjobs that executes php files. For example one cronjob execute every 15 minutes a php file that reads a json file and insert variables in my…
MacQwerty
  • 1
  • 1
0
votes
0 answers

BAT script to return server licenses at shutdown?

My office uses program licenses that have to be manually activated and returned, and people tend to forget to do this when they go home for the day, resulting in most licenses tending to be unavailible for anyone coming in early next morning and…
-1
votes
2 answers

Remove "Cc: " from mailx command

I have recently setup a mail server on my Ubuntu Desktop 16.10, and I made a script that when a specific user logs in, they will execute the script instead of bash. Here is the script: #!/bin/bash while [ true ] do echo -n "To: " read To …
MaliciouZzHD
  • 1
  • 1
  • 3
-1
votes
1 answer

robocopy cannot find path

i have batch script like bellow: SET SOURCE=F:\Diff\For_VOYAGE\models.pck.files\models\players SET DESTINATION=F:\Diff\For_VOYAGE\models.pck.files\NEW\models\players SET LOG=LOG.txt robocopy %SOURCE%\装备\女\印度舞娘时装上衣 %DESTINATION%\装备\女\印度舞娘时装上衣 /E…
hrace009
  • 1
  • 3
-1
votes
2 answers

Debian statistics - cpu, memory, hdd

I'm wondering how can I get my dedicated server avarage statistics for last month/ week. I used sysstat and sar to report my logs, but they are seems to be too much I'm interested about averege final number. Any ideas how can I get last month/week…
artofbw
  • 1
  • 1
-1
votes
2 answers

Search for file names containing space

I have a batch file that helps me in install multiple pieces of software from a shared folder. It's working well with software whose names don't contain spaces, but I need it to work with software does. this code is working fine because thereis no…
-1
votes
2 answers

can't find the executable for the command linux 'source'

i am using ubuntu server 12.04 lts. I am looking for the executable of the linux command source i can not find in the /bin nor /usr/bin nor /usr/sbin nor /usr/local/bin . I used whereis source it gives me source: but i need the path for this…
ghassen
  • 123
  • 1
  • 6
-1
votes
2 answers

Python script to log name, date, and command of every command users have entered

I want to create a script, possibly in python, open to suggestions, it logs every command typed on the server. so it would log, user, timestamp and command. Is this possible?
RSM
  • 101
  • 3
-1
votes
2 answers

nested Cmnd_Alias in sudo configuration

im trying to simplify my sudo configuration but not sure if sudo supports this configuration. I have a "view" command alias which we use to provide access to log files: Cmnd_Alias VIEW = /bin/cat, \ /bin/zcat, \ …
Mark V
  • 121
  • 6
-1
votes
1 answer

ssh argument command not passed

Doing this command: iptables -I INPUT -d xxx.xxx.xxx.xxx -p tcp --dport 80 -m string --to 70 \ --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP I got this error on ssh console: "bad argument (--algo)". How can solve this?
veriu
  • 3
  • 1
-1
votes
1 answer

fetch between brackets on json with grep

i have the following json data "url": "https://www.etsy.com/listing/812858182/59ft-x-84ft-moroccan-rug-mrirt-rug-beni?utm_source=etsymeter&utm_medium=api&utm_campaign=api", "num_favorers": 26, "views": 69, "sku": [ "Atlas115" ], …
newbiline
  • 1
  • 1
-1
votes
1 answer

filtering result text with linux command

I would like to know how could I filter the result from a large text with Linux command example text : dmade Moroccan Rug, Beni Ourain Rug, White & Red Wool","sku":[],"is_vintage":false},{"title":"Moroccan Handmade Rug, Beni Ourain Rug, Sheep Wool…
newbiline
  • 1
  • 1
1 2 3
12
13