Displaying 20 results from an estimated 30000 matches similar to: "How to test for '.' in a script"
2008 May 05
2
kingston usb memory stick and file mode permissions
I wish to change the ownership and access permissions of files and directories
contained on this device. The device is immediately recognized and mounted
when plugged in and I can create and move files on it. However, I cannot
change either the permissions or the owner of any file or directory on this
device, nor of the device mount itself, whether logged in as the owner or as
root.
Why is this
2015 Jun 15
3
Logwatch and System uptime
CentOS-6.6
Can logwatch be configured to display the system uptime as part of the
reporting prologue? If not then what would be the recommended way of
including this information in a daily logwatch report?
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne
2005 Aug 12
4
Remote archiving with tar over ssh
I am trying to create a one line command that will:
1. Find all files ending in .conf
2. tar these over ssh to a remote server.
I have reached this point in my trials.
a. I can find the files.
b. I can tar them locally.
c. I can get a simple fileset tar'ed to a remote server over ssh
using tar -zvcf - /some/fileset | ssh host.domain.tld "cat >
/backup/tarfile.tar.gz
d. I cannot
2012 Sep 20
3
Sendmail log entries
Recently we began seeing lots of these log entries on our off-site mx
smtp host. I have googled this but I am not clear from what I have
read if this is something we can stop altogether or should even worry
about.
Comments?
Logwatch. . .
--------------------- sendmail Begin ------------------------
SMTP SESSION, MESSAGE, OR RECIPIENT ERRORS
------------------------------------------
2006 Jan 10
1
Apache on CentOS
Does the Apache rpm shipped with CentOS 4.x have UTF-8 enabled as
the default document encoding for all virtual servers? If so, then
why?
Regards,
Jim
--
*** e-mail is not a secure channel ***
mailto:byrnejb.<token>@harte-lyne.ca
James B. Byrne Harte & Lyne Limited
vox: +1 905 561 1241 9 Brockley Drive
fax: +1 905 561 0757 Hamilton, Ontario
2005 Aug 12
2
CentOS] Remote archiving with tar over ssh
>
On Fri Aug 12 17:14:00 UTC 2005 Paul Heinlein heinlein at madboa.com
wrote:
>
> How about
>
> tar c $(find / -name \*.conf) | ssh host.com "gzip -c > file.tar.gz"
Thank you very much, this worked. I have two supplementary
questions. First, what is the significance of the $() construct in
bash and how does it interact with tar? Does it take the place of
2014 Jun 03
2
[OT] OSX-10.9.3 cd ~'/ problem with spaces'
Apologies for this OT post. I need some help debugging a bash script. It
just happens to be provided by Apple Inc.
In a terminal session under OSX-10.9.3 I want do do this:
cd ~/'Library/Application Support'
Which is a simple enough request. However, OSX returns: cd
/users/byrnejb/Library/Application: No such file or directory. The space
evidently acts as a delimiter to cd even
2009 Aug 07
4
CentOS as a router
I am setting up a small CentOS-5.3 host to act as a router. I have
the device configured and working. What I am trying to accomplish
now is configuring the firewall so as to protect both the router and
the LAN.
The host configuration has the WAN attached to eth0 (IP_ADDR = A)
and the LAN attached to eth1 (IP_ADDR = B). The default gateway for
B is A. The default gateway for B is B-1. There
2005 Aug 02
2
Bacula
We are presently looking into alternative backup strategies for our
networked servers and are considering Bacula. Does anyone have any
opinions on this application, good and bad, to share? Further, is
there a CentOS4 specific rpm build available for this in a yum
repository (I note that CentOS4 tags have been added to the Bacula
source tree)?
Regards,
Jim
--
*** e-mail is not a
2015 Sep 23
1
OT: closing a port on home router
On Wed, September 23, 2015 00:11, Always Learning wrote:
>
>
> That is great. When I started on Linux that was one of the very
> first things I did. Every machine, including servers, has port 22
> replaced by a unique alternative port. Port 22 is also blocked in
> IPtables.
>
> There is an army of dangerous nutters attempting to break-in to
> everything. They often mask
2010 Jan 28
2
Starting a java applet from the desktop
CentOS-5.4 i86_64
I have a calculator applet on my desktop (superbcalc.jar). When I
double click on it I get no response. If I right click and select
open with java I get no response. If I open a terminal window and
cd to Desktop and type java -jar superbcalc.jar then the applet
opens.
Does anyone have any idea why I am seeing this behaviour? There are
no messages in the syslog file relating
2008 Oct 06
3
[Fwd: Re: Install CentOS-5.0 on HP-ComPaq DC7700 Dual Core]
---------------------------- Original Message ----------------------------
Subject: Re: [CentOS] Install CentOS-5.0 on HP-ComPaq DC7700 Dual Core
From: "James B. Byrne" <byrnejb at harte-lyne.ca>
Date: Mon, October 6, 2008 12:26
To: cenos at centos.org
Cc: "John Newbigin" <jnewbigin at ict.swin.edu.au>
2011 Jul 28
0
[Fwd: [SOLVED] Re: How to test for '.' in a script]
On Thu, July 28, 2011 14:30, James B. Byrne wrote:
> I am trying to check for a single period '.' in a shell variable.
>
> $ I=.
> $ echo $I
> .
> $ if [[ "$I" -eq '.' ]]; then echo true; fi
> -bash: [[: .: syntax error: operand expected (error token is ".")
>
. . .
>
> How does one check to see for this in a bash script?
Found
2009 Mar 31
1
[Fwd: Re: Another rpm question re %make]
On Tue, March 31, 2009 13:03, James B. Byrne wrote:
> Found it. No etc/at.allow and no etc/at.deny means only root can
> submit jobs.
>
Well, that was not it. I still get the same errors after adding my
user id to /etc/at.allow. I tested whether job control was enabled
by moving top into the background using ctrl-z and fg to return and
that worked. Any suggestions as to what I am
2020 Jul 07
3
Can someone explain why host reports no SOA record for domain on DC?
[root at smb4-1 ~ (master)]# samba-tool dns query localhost brockley.harte-lyne.ca
brockley.harte-lyne.ca ALL -U administrator
Password for [BROCKLEY\administrator]:
Name=, Records=4, Children=0
SOA: serial=3, refresh=900, retry=600, expire=86400, minttl=3600,
ns=SMB4-1.brockley.harte-lyne.ca., email=hostmaster.brockley.harte-lyne.ca.
(flags=600000f0, serial=110, ttl=3600)
NS:
2020 Jun 03
1
samba-tool dns query
On Tue, June 2, 2020 11:13, Rowland penny wrote:
> On 02/06/2020 16:03, James B. Byrne via samba wrote:
>> Samba-4.11.8 on FreeBSd-12.1p5
>>
>> How does one list all of the actual DNS records for Samba administered zones,
>> forward and reverse?
>>
> Try:
>
> samba-tool dns query localhost brockley.harte-lyne.ca
> brockley.harte-lyne.ca ALL -U
2014 Feb 03
1
Samba-4.17 joining an existing domain.
i86_64
CentOS-6.5
sernet-samba-4.1.7
MS Windows Advanced Server 2000
We have a very old MS-Windows Domain Controller running on equally old
hardware that we wish to replace with a Samba4 installation running on a
virtualised CentOS-6.5 . Other than most user desktops this is the last
remaining MS based system here and we would really, really like to shut it
down. Our plan is to join two Samba4
2020 Jun 02
2
samba-tool dns query
Samba-4.11.8 on FreeBSd-12.1p5
How does one list all of the actual DNS records for Samba administered zones,
forward and reverse?
When I use the dns query option of samba-tool I get a summary but no detail:
samba-tool dns query localhost brockley.harte-lyne.ca @ ALL -U administrator
Password for [BROCKLEY\administrator]:
Name=, Records=3, Children=0
SOA: serial=1, refresh=900, retry=600,
2006 Nov 08
2
Problems with yum/rpm and %pre scriptlet error 255
I am running xen (2.6.16-xen3_86.1_rhel4.1) on top of a stock CentOS-4.4
installation. I have not added any additional virtual machines however.
When trying to install (as root) acrobat reader 7 for Linux from the adobe
rpm (AdobeReader_enu.i386 7.0.8-1) I get the following errors:
error: %pre(AdobeReader_enu-7.0.8-1.i386) scriptlet failed, exit status 255
error: install: %pre scriptlet
2020 Jun 04
1
samba-tool dns query
On Wed, June 3, 2020 10:52, Rowland penny wrote:
> On 03/06/2020 15:31, James B. Byrne wrote:
>>
>> samba-tool dns query localhost brockley.harte-lyne.ca brockley.harte-lyne.ca
>> ALL -U administrator
>> Password for [BROCKLEY\administrator]:
>> Name=, Records=3, Children=0
>> SOA: serial=1, refresh=900, retry=600, expire=86400, minttl=3600,
>>