Search Results

Search: Posts Made By: chebarbudo
1,017
Posted By chebarbudo
Can I trace who asked for reboot
Hi,
I have an unexpected reboot happening on a Debian 9.9 server.
Yesterday 2019-12-01 at 8:30:34 a reboot happened without me or my team being aware:
/var/log/syslog:Dec 1 08:30:34 xxxx...
2,286
Posted By chebarbudo
Maybe try greping the directory name with the...
Maybe try greping the directory name with the case insensitive switch (-i):
(
cd /app/weblogic/myserver4/logs/ || exit 1
d=$(ls | grep -i `hostname -s`) || exit 1
[[ -e...
809
Posted By chebarbudo
Didn't know the command pax. I had to install...
Didn't know the command pax.
I had to install the package pax.
It does exactly what I want.
Thanks
809
Posted By chebarbudo
Hi Don Cragun and thanks for your concern, No I...
Hi Don Cragun and thanks for your concern,
No I only want to copy the directory and its attributes, not the files nor the other folders in it.

------ Post updated at 15:15 ------


Hi jim...
809
Posted By chebarbudo
Copy directory withOUT recursion
Hi,


I cannot find a way to copy a directory to another location with all attributes (mode, ownership, timestamps) but withOUT recursion (after so many years of working with Linux).


Say I...
1,169
Posted By chebarbudo
Great lead. Thanks jim mcnamara.
Great lead. Thanks jim mcnamara.
1,169
Posted By chebarbudo
Thanks joeyg for your thoughts... It's...
Thanks joeyg for your thoughts...
It's unfortunately more complicated.
On the small pool I'm working on (4000+ messages / 200- addresses), I already have a few patterns:


FOO
Raw
root...
1,169
Posted By chebarbudo
Parsing to_addr field in bash
Hi there,

I'm trying to parse the to_addr field of emails and split it into individual email addresses. The idea is to split using the comma character (,):
These two first approach work:
$...
1,556
Posted By chebarbudo
Thanks Andrew, I've noted a weird behavior....
Thanks Andrew,

I've noted a weird behavior. If I used this syntax:
cat << EOF | telnet ndtv_server 25
HELO mydomain.com
MAIL FROM: terminal92@mydomain.com
RCPT TO: support@mydomain.com
DATA...
1,556
Posted By chebarbudo
Amazing! I ran the following script and it...
Amazing!
I ran the following script and it worked. Thank you jim mcnamara :
cat << EOF | telnet ndtv_server 25
HELO mydomain.com
MAIL FROM: terminal92@mydomain.com
RCPT TO: support@mydomain.com...
1,556
Posted By chebarbudo
Send mail without mailutils
Hi,

I have ~150 machines that send email from cron jobs. All the systems are identical and they use ssmtp to relay through one of our server configured with postfix.

postfix works fine because...
1,176
Posted By chebarbudo
When I don't know how to undo something, I often...
When I don't know how to undo something, I often search how to DO it. It worked today with linux hide processes from other users - Recherche Google...
1,176
Posted By chebarbudo
All I was hiding from stderr is the non-existing...
All I was hiding from stderr is the non-existing stuff you mentioned. I only wanted to show process directories (starting with a digit). This is the full content of my /proc. Sorry for the long...
1,176
Posted By chebarbudo
Indeed, all I see in /proc are my own processes: ...
Indeed, all I see in /proc are my own processes:
santiago@alphard:~$ ls -ld /proc/{0..9}* 2> /dev/null
dr-xr-x--- 7 santiago root 0 Jun 28 14:05 /proc/13449
dr-xr-x--- 7 santiago root 0 Jun 28...
1,176
Posted By chebarbudo
santiago@alphard:~$ uname -srv Linux...
santiago@alphard:~$ uname -srv
Linux 3.14.32-xxxx-grs-ipv6-64 #9 SMP Thu Oct 20 14:53:52 CEST 2016
santiago@alphard:~$ cat /etc/debian_version
7.11
santiago@alphard:~$ bash --version | head -1...
1,176
Posted By chebarbudo
Thanks rovf, That would mostly work I think but...
Thanks rovf,
That would mostly work I think but beside the language barrier, I don't like relying on error messages that could vary from one implementation to another. But that's the best answer so...
4
466
Posted By chebarbudo
Agree.
Agree.
4
466
Posted By chebarbudo
Yesterday: date -d 'now - 1 day' +'%d%m%Y'
Yesterday:
date -d 'now - 1 day' +'%d%m%Y'
1,176
Posted By chebarbudo
Process existence or/and permission
Hi,

In a bash script, I'm using kill -0 to test if I have permission to kill a process. There are 3 cases:
- the process exists and I have permission: OK
- the process doesn't exist and it's OK...
1,808
Posted By chebarbudo
Thanks drl, Never used ksh before. Just gave...
Thanks drl,

Never used ksh before. Just gave your code a test and it does what I want.

Cheers
Santiago
599
Posted By chebarbudo
Hi general_franco, If you want to manually...
Hi general_franco,

If you want to manually force arguments, you can use :
set -- -dbversion 11.2.0.4.0 -type backup -host testhost
while [ -n "$1" ]; do

Regards
Santiago
536
Posted By chebarbudo
Hi pokhraj_d, Obviously cat...
Hi pokhraj_d,

Obviously
cat /etc/oraInst.loc | grep VIS | cut -d "=" -f2 | sed 's#/oraInventory##'
would work but if you need a more generic answer, you need to provide the content of...
1,808
Posted By chebarbudo
Thanks MadeInGermany, I didn't think about...
Thanks MadeInGermany,

I didn't think about your approach. And I didn't know there was no such local functions.

Because my function is pretty long, I'm going to stick to another workaround which...
1,004
Posted By chebarbudo
Hi, The seconds file is NOT a bash file....
Hi,

The seconds file is NOT a bash file. It's an expect file.
You should call it with /usr/bin/expect -f dlinkreboot.sh instead of /bin/bash dlinkreboot.sh

Regards
Santiago
1,808
Posted By chebarbudo
How to make nested function local?
Hi,

If I declare a function inside another function, it overwrites any previously declared function with the same name. This is NOT what I want.

Example:
#!/bin/bash

_test() { echo test; }...
Showing results 1 to 25 of 346

 

Featured Tech Videos

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