similar to: run bash <filename> from cron

Displaying 20 results from an estimated 11000 matches similar to: "run bash <filename> from cron"

2017 Nov 15
1
run bash <filename> from cron
> On Nov 15, 2017, at 11:48 AM, m.roth at 5-cent.us wrote: > > Mark Haney wrote: >> This might be a bit OT, but I've never had to do this before and what >> I've googled doesn't seem to be working. >> >> I have an ansible playbook that I'm working on that I want to run as a >> cronjob. One task I'm having trouble with is where I have a
2017 Sep 15
2
CentOS 6.4 apparent rpm problem
Well, after three days of beating my head against my desk, I'm waving the white flag.? I've got a CentOS 6.4 box (yeah, I know) that I blew away the OpenLDAP client and installed the freeipa-client as we're transitioning off this terrible OpenLDAP implementation here.? Everything installed fine, and while I'm still tweaking the ansible playbook for completely flushing PAM and
2017 Nov 15
1
run bash <filename> from cron
On 11/15/2017 11:48 AM, m.roth at 5-cent.us wrote: > Mark Haney wrote: >> For the record, this was the only option to handle the task I'm having >> issues with inside cron. >> > Yes. Do not trust your environment, running as a cron job, to be what you > think it is. Try testing it by have your cron job, at the top of the > script, issue the env command. > >
2017 Nov 09
1
Possibly [OT] ansible vmware inventory plugin
Yeah, it's the Extras repo Ansible package. So, my next (probably stupid) question, is there a way to get the vmware_inventory plugin setup on my system? <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com
2017 Nov 08
3
Possibly [OT] ansible vmware inventory plugin
This might be OT, but it is CentOS related.? I've been running Ansible on C7 for a handful of months now, and updated to 2.4 as soon as it was available. I've been building inventories by hand in that time (mostly due to the fact we had no actual documentation on the managed external customer servers). However, as we have a multiple VMware clusters, thought it might be time to tinker
2017 Oct 25
11
[OT] Bash help
I know this is for CentOS stuff, but I'm at a loss on how to build a script that does what I need it to do.? It's probably really logically simple, I'm just not seeing it.? Hopefully someone will take pity on me and at least give me a big hint. I have a file with two columns 'email' and 'total' like this: me at example.com 20 me at example.com 40 you at domain.com
2017 Jul 03
1
System Start-Up Issue
On 07/03/2017 10:52 AM, m.roth at 5-cent.us wrote: > Chris Olson wrote: >> On Monday, July 3, 2017 5:58 AM, "m.roth at 5-cent.us" <m.roth at 5-cent.us> >> wrote: >> Chris Olson wrote: >> <snip> >>> I went on vacation right after an update to one of our virtual CentOS >>> 6.9 systems so it was not restarted for a period of
2017 Nov 15
0
run bash <filename> from cron
On Wed, 15 Nov 2017, Mark Haney wrote: > This might be a bit OT, but I've never had to do this before and what I've > googled doesn't seem to be working. > > I have an ansible playbook that I'm working on that I want to run as a > cronjob.? One task I'm having trouble with is where I have a text file with > lines like: > > rd.pl "blah blah"
2017 Nov 15
0
run bash <filename> from cron
Mark Haney wrote: > This might be a bit OT, but I've never had to do this before and what > I've googled doesn't seem to be working. > > I have an ansible playbook that I'm working on that I want to run as a > cronjob.? One task I'm having trouble with is where I have a text file > with lines like: > > rd.pl "blah blah" > rd.pl "blah
2017 Oct 25
3
[OT] Bash help
On 10/25/2017 12:33 PM, Robert Arkiletian wrote: > here is a python solution > #!/usr/bin/python > #python 2 (did not check if it works) > f=open('yourfilename') > D={} > for line in f: > email,num = line.split() > if email in D: > D[email] = D[email] + num > else: > D[email] = num > f.close() > for key in D: >
2017 Jun 05
2
C7 ansible 2.3 become_method: su not working
I just don't know what else to try. I've beat my head on this for 3 days now and it's becoming obvious that either Ansible 2.3 is a complete disaster, or the CentOS 7 package is a complete cluster. Here's my problem. I am working on getting an ansible server to manage about 100 or so CentOS 6 servers. All have an unprivileged user account setup (up to 3 years before I got
2017 Oct 25
3
[OT] Bash help
On 10/25/2017 12:47 PM, Warren Young wrote: > > You?re making things hard on yourself by insisting on Bash, by the way. This solution is better expressed in Perl, Python, Ruby, Lua, JavaScript?probably dozens of languages. Yeah, you're right, I am. An associative array was the first thing I thought of, then realized BASH doesn't do those.? I honestly expected there to be a fairly
2017 Jun 01
4
yum install <olderversion> does not downgrade
We're using ansible to configure our CentOS 6 servers, and we have a task to install a specific version of a package: - name: install thrift2 yum: name=ripencc-thrift2-{{ version }} In this ansible task, the "version" variable is set by the operator. When we want to upgrade, it works. But today we had to downgrade, and noticed that ansible wasn't downgrading it. So we tried
2017 Jul 03
2
System Start-Up Issue
None of the previous kernels will boot properly. On Monday, July 3, 2017 5:58 AM, "m.roth at 5-cent.us" <m.roth at 5-cent.us> wrote: Chris Olson wrote: <snip> > I went on vacation right after an update to one of our virtual CentOS 6.9 > systems so it was not restarted for a period of time.? Now it will not > complete boot-up with the gnome display never
2017 May 26
1
CentOS 6 dhcpd custom log issues
Hi all, I've got an issue with C6's dhcpd custom logging that I cannot figure out. Hopefully someone has an idea, or has seen a similar issue. We have dhcpd logging to /var/log/messages a custom header (DHCPUSER:) with MAC, IP and Circuit-ID. I'll not bore you with the guts, so here's the beginning of that line in dhcpd.conf: if exists agent.circuit-id { log (info,
2017 Oct 25
6
[OT] Bash help
Warren Young wrote: > On Oct 25, 2017, at 10:02 AM, Mark Haney <mark.haney at neonova.net> wrote: >> >> I have a file with two columns 'email' and 'total' like this: >> >> me at example.com 20 >> me at example.com 40 >> you at domain.com 100 >> you at domain.com 30 >> >> I need to get the total number of messages for
2017 Aug 10
3
BIND 9.9 RRL
I can't seem to find anything clear on this, but is the C7 version of BIND 9.9 built with Request Rate Limiting? -- Mark Haney Network Engineer at NeoNova 919-460-3330 option 1 mark.haney at neonova.net www.neonova.net
2017 Nov 01
2
Kickstart ksdevice question
On 11/01/2017 01:57 PM, Tristan Hoar wrote: > > Strictly speaking it is depricated > https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#d > eprecated-options > > Regards, > > Tris > Okay, so it looks like I can simply change ksdevice=eth0? to bootdev=eth0, correct? -- Mark Haney Network Engineer at NeoNova 919-460-3330 option 1 mark.haney at
2017 Nov 01
6
Kickstart ksdevice question
This should be easy to answer (I hope).? We routinely kickstart boxes to use for managing our customers RADIUS/DHCP configurations (along with other things).? We've had a C7 kickstart in place since I built one in May and are finally starting to roll it out for new installations.? But, I'm curious as to what ksdevice= actually does. With the C6 we routinely used ksdevice=eth0 since we
2017 Jul 10
2
chkconfig madness CentOS 7
I have a couple of in use C7 boxes that were built with ntsysv and chkconfig for some old packages that needed to start using init.d. (The person setting these up didn't know about systemd creating service files for older packages, so we're stuck with these as-is. Here's my problem: Error unpacking rpm package chkconfig-1.7.2-1.el7.x86_64 error: unpacking of archive failed on