Search Results

Search: Posts Made By: chebarbudo
640
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
640
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...
640
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,134
Posted By chebarbudo
Great lead. Thanks jim mcnamara.
Great lead. Thanks jim mcnamara.
1,134
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,134
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,273
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,273
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,273
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,079
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,079
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,079
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,079
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,079
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
441
Posted By chebarbudo
Agree.
Agree.
4
441
Posted By chebarbudo
Yesterday: date -d 'now - 1 day' +'%d%m%Y'
Yesterday:
date -d 'now - 1 day' +'%d%m%Y'
1,079
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,571
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
565
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
506
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,571
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...
883
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,571
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; }...
2,933
Posted By chebarbudo
Thanks MadeInGermany, I'd rather not create...
Thanks MadeInGermany,

I'd rather not create a subshell. A lot of the scripts in which I need that feature use functions meaning I would have to replace all the `return' with some `exit'. But I see...
2,933
Posted By chebarbudo
Send current script to background
Hi scripters,

I'm quite used to run commands in the background using & like in:
$ myscript &But this is NOT what I'm trying to do today. What I'm trying to achieve is to run a script the normal...
Showing results 1 to 25 of 344

 

Featured Tech Videos

All times are GMT -4. The time now is 10:32 AM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy