All Questions
1,846 questions
0
votes
0
answers
25
views
crontab script is not running in other server. In the server we copied, it's running fine [duplicate]
see below details
eccdbpvm02:/mnt/HANA/E1P/backup/data/DB_F1P # crontab -l
05 00 * * * /usr/sys_scripts/clear_log >> /usr/sys_scripts/log.txt 2>&1
eccdbpvm02:/mnt/HANA/E1P/backup/data/...
1
vote
5
answers
564
views
Remove commas in double quotes from CSV
I have a comma separated line I am using awk to extract fields from.
Server1,poweredOn,10.0.18.70,"Blue, Green",POC,Vsphere
However, when it comes to the text in double quotes ("Blue, ...
0
votes
0
answers
169
views
Find out whether an IP address is within a subnet in Mikrotik address list
In a script I use following line to find out whether some address is already in a list:
/ip fire addr find where list=$listName address=$logIp
The block looks as follows:
:if ([:len [/ip fire addr ...
0
votes
1
answer
239
views
Unable to run BCDEDIT script with GPO
Unable to run BCDEDIT script with GPO
This is more or less identical to the following post:
Stumped on why my Startup GPO Script isn't executing BCDEdit correctly
However, I am unable to respond ...
0
votes
0
answers
64
views
Cannot find login script
I inherited a quite simple network; 6 Windows servers (an FSMO, 2 DCs, Terminal server, File Share, SQL Server). Over the past Several months, I have resolved issues on the network, AD, FSMO, DNS ...
0
votes
1
answer
217
views
Starting Network Script in Task Scheduler as System with FQDN not working
i have a strange Problem and i hope someone can help me.
What I’m doing:
I am creating a Scheduled Task via GPO, which starts a Powershell script which is located on a network share. The Script should ...
1
vote
2
answers
955
views
How to get global IPv6 address of the current machine?
I a bash script, I want to obtain the global IPv6 address of my machine for a given network adapter (on my case 'ens18').
To get started, I issued the following command:
ip -6 addr
This gives me the ...
1
vote
2
answers
12k
views
Script to upgrade Windows 10 to Windows 11
I want to create a script to unattended upgrade my Windows 10 machines to Windows 11, but I don't want to install in the process all unnecessary applications like xbox.
I'm trying to upgrade my ...
1
vote
0
answers
1k
views
How to utilize client certificates now that cURL has removed support for NSS
We recently upgraded from RHEL7 to RHEL8 and one of this issues that wasn't straight forward to handle is how to utilize cURL with client certificates after cURL removed support for NSS?
Previously, ...
0
votes
1
answer
114
views
Using destination file name vs destination directory when moving a file creates auditd logging dilemma
I am trying to log file operations using auditd (audit 4.0.1) and came across an issue with moving files. If I include the filename in the destination:
mv /mnt/user/home/file.txt /mnt/user/home/...
0
votes
1
answer
99
views
.htaccess exposed to www since upgrade from apache 2.2 to 2.4
I just upgraded apache on my very old WHM server from 2.2 to 2.4, and now .htaccess files are being treated like text files instead of apache scripts.
I also installed mod_ruid2 0.98
These three lines ...
1
vote
1
answer
949
views
Set service Startup Type to "Automatic (DelayedStart)" with PowerShell
I'm trying to script changing specific services to have Startup Type "Automatic (DelayedStart)". When I pipe the services into Set-CimInstance, I get an error that it "could not modify ...
1
vote
1
answer
629
views
Query Windows RDP monitor positions via command line
I am using Windows RDP (remote desktop) with a multi-monitor setup and I want my script to automatically detect the position of the monitors. Additionally, I only use some of my monitors for RPD with ...
0
votes
0
answers
207
views
Stop minikube on Ubuntu shutdown
I'm new to Kubernetes, I have internal instruction on how to setup the app locally using minikube. The problem is that I sometimes forget to stop the Cluster, if I do when shutdown the system it will ...
0
votes
1
answer
139
views
script to print dhcpd.leases info to syslog/file
So i'm running dhcpd on a server and to my knowledge the logs from dhcpd are not adjustable, if they are i'm dying to know how...
Anyways, i need something to check the dhcpd.leases-file which is ...