Search Results

Search: Posts Made By: hergp
3,482
Posted By hergp
Try something like this: # crontab -l -u...
Try something like this:

# crontab -l -u hergp
0 * * * * /home/hergp/hello.sh
# EDITOR="sed -i s/hello/world/" crontab -e -u hergp
crontab: installing new crontab
# crontab -l -u hergp
0 * *...
7,204
Posted By hergp
This minor version difference should not matter. ...
This minor version difference should not matter.

Probably a login script like .bashrc or .profile produces some output which confuses rsync. If so, eliminate this output at least for non...
Forum: Red Hat 09-20-2017
9,125
Posted By hergp
You should remove any interface attributes from...
You should remove any interface attributes from the ABCinternal zone or every ssh-connect arriving on one of the listed interfaces will be accepted.

I can't see any active services but ssh in your...
Forum: Red Hat 09-19-2017
9,125
Posted By hergp
Hmm, can you check all active zones, if service...
Hmm, can you check all active zones, if service ssh or port 22/tcp is present somewhere? You can do this by either running

firewall-cmd --get-active-zones
and then for each zone listed
...
Forum: Red Hat 09-19-2017
9,125
Posted By hergp
You probably have not removed the ssh service...
You probably have not removed the ssh service from the default zone

firewall-cmd --permanent --zone=public --remove-service=ssh
firewall-cmd --reload
2,714
Posted By hergp
sudo switches users, not groups. But you can...
sudo switches users, not groups. But you can assign the apache group to those users as secondary group

usermod -a -G apache fred
After this, fred is a member of both groups simultaneously. Both...
2,714
Posted By hergp
For example fred ALL=(apache) ALL allows...
For example

fred ALL=(apache) ALL
allows fred to switch to the apache user. He has to enter his own password every time he switches. If he shall be allowed to switch without entering his...
5,641
Posted By hergp
You are welcome abigbear, glad I could help.
You are welcome abigbear, glad I could help.
5,641
Posted By hergp
If your request works in a browser, then your API...
If your request works in a browser, then your API requires a GET request, not a POST.

Does

curl 'http://192.168.1.13/api/callAction?deviceID=453&name=setValue&arg1=40'

work?
Forum: Red Hat 06-17-2017
14,649
Posted By hergp
Firewalld implements a zone concept. To allow...
Firewalld implements a zone concept. To allow access to services based on the source address, just create a new zone, add source addresses and services to the zone and you are done.

Here is an...
1,672
Posted By hergp
Try awk '{ if ($3 == "TS_") $5 = "$-1.00" ;...
Try

awk '{ if ($3 == "TS_") $5 = "$-1.00" ; print }' input >output
1,258
Posted By hergp
The offender seems to be set -f. This option...
The offender seems to be set -f. This option tells the shell to disable expansion of wildcards. Putting set +f at the end of the function should solve the problem.

...
done
set +f
}
Forum: Programming 10-17-2016
2,404
Posted By hergp
I don't think that this is possible. But maybe...
I don't think that this is possible. But maybe someone with better NodeJS knowledge has an idea?
Forum: Programming 10-17-2016
2,404
Posted By hergp
The shebang line does only work with languages...
The shebang line does only work with languages that interpret the hash-sign as a comment. Javascript does not, so it thinks, that #!/usr/bin/js is a valid statement. By the way, if you feed your...
Forum: Red Hat 09-12-2016
4,550
Posted By hergp
If you need an init script to start a DB2...
If you need an init script to start a DB2 instance at system boot you can use this minimalistic script:

# chkconfig: - 91 09
DB2BASE=/opt/ibm/db2/V9.7.5
DB2INST=db2inst1
case "$1" in
...
8,242
Posted By hergp
You can try this awk script. It looks for fields...
You can try this awk script. It looks for fields looking like dates, splits them into month, day and year and recombines them using a proper format.


BEGIN {
FS="|"
OFS="|"
}
{
...
2,682
Posted By hergp
This output shows, that php was not installed...
This output shows, that php was not installed using a package manager on your system. Someone compiled and installed php from source. Therefore there is no way to update your installation using yum...
2,682
Posted By hergp
According to Redhat's knowledgebase, this should...
According to Redhat's knowledgebase, this should be fixed in php-5.3.3-46 or later.

Check your installed version with

# rpm -q php
php-5.3.3-48.el6_8.i686
If the installed version is too...
1,791
Posted By hergp
I tested your script with three different...
I tested your script with three different recipients using GMail, Notes and Roundcube clients and in every situation the HTML table was displayed properly.
23,353
Posted By hergp
It works here with slight adjustments using bash:...
It works here with slight adjustments using bash:

#!/bin/bash

arr=( 1 2 3 4 )
n=${#arr
}

for (( i = n-1; i >= 0; i-- ))
do
echo ${arr[i]}
done
Output:

4
3
2
1
20,299
Posted By hergp
%5dn prints the line number with a standard...
%5dn prints the line number with a standard printf like format of %5d (numeric, 5 characters wide with leading blanks).

< or > are literal strings.

%L is substituted by the line content.
...
20,299
Posted By hergp
Or maybe this? file1: one two three ...
Or maybe this?

file1:
one
two
three
file2:
one
two
four
and
$ diff --old-line-format="%5dn< %L" --new-line-format="%5dn> %L" --unchanged-line-format="" file1 file2
3< three
3>...
Forum: Red Hat 04-11-2016
5,865
Posted By hergp
The problem is most likely not the physical...
The problem is most likely not the physical hardware in your laptop, but the virtual hardware created by VMware for your virtual machine. Try to experiment with the settings of the virtual hardware....
2,821
Posted By hergp
Looks like the output of the select statement is...
Looks like the output of the select statement is not just 0, but something like 0.

If the status code in the database does not contain blanks, you just could remove the quotes from the case...
2,821
Posted By hergp
I am not sure, if I understand you correctly. Do...
I am not sure, if I understand you correctly. Do you mean the SQL SELECT statement or the case-construct afterwards? Can you give an example?
Showing results 1 to 25 of 500

 
All times are GMT -4. The time now is 07:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy