Search Results

Search: Posts Made By: mandelbrot333
2,402
Posted By mandelbrot333
Removing tmp file too quickly?
Still trying to get the basics down and I would like a different solution to what I'm currently doing and a better understanding of why it's happening. I've written a simple backup script that tars...
2,588
Posted By mandelbrot333
Noted. However, I can run the command...
Noted.

However, I can run the command without the -E option and it will parse correctly.

In the man file I quoted, the structure seems to support both -E and -s in the same line.


Thanks...
2,588
Posted By mandelbrot333
Process substitution
Just playing around with process substitution.
Hoping maybe someone can give me some help on what I'm doing wrong.
When this script is run, "Null message body; hope that's ok" is returned and the...
5,940
Posted By mandelbrot333
Maybe SSH to another box and issue the mail...
Maybe SSH to another box and issue the mail command there..?
16,738
Posted By mandelbrot333
That way, stdout and stdin never hang but never...
That way, stdout and stdin never hang but never go anywhere either

Cool! Still learning this stuff :o
But I meant why would you redirect /dev/null into stdin? The reverse makes sense..
...
16,738
Posted By mandelbrot333
I'm not really following this. I'm not...
I'm not really following this.

I'm not either..
Can you tell me why you would pipe /dev/null into stdin?

Also,
exec 0<&-


What is this?
16,738
Posted By mandelbrot333
I don't want to redirect stderr, and have already...
I don't want to redirect stderr, and have already redirected stdin and stdout to /dev/null. I expected ls to inherit stdin and stdout from the shell

Yes but you haven't redirected stderr, which...
16,738
Posted By mandelbrot333
ls -l /proc/self/fd >&2 You are redirecting...
ls -l /proc/self/fd >&2
You are redirecting stdout (what ls is producing) into stderr (&2).

Unless you tell the script to dump stderr to /dev/null...:
./myscript 2>/dev/null

...it will be...
13,307
Posted By mandelbrot333
Hopefully I'm understanding you correctly. Your...
Hopefully I'm understanding you correctly. Your first sentence made my mind go in a loop.

find . -maxdepth 1 -type f -name test -o -name temp
13,307
Posted By mandelbrot333
find . -maxdepth 1 -type f -mmin +45 -print
find . -maxdepth 1 -type f -mmin +45 -print
3,814
Posted By mandelbrot333
Using CP in bash script
I've got something to this effect:


read -n1 -p "Continue? (y/n)"
if [[ $REPLY == [yY] ]]
then printf "\n" &&
cp -prv $WODI/* $OTHERDRIVE &&
chown -R...
Showing results 1 to 11 of 11

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