Search Results

Search: Posts Made By: DC Slick
7,460
Posted By Chubler_XL
If you have gnu tar you can use --strip=3 to...
If you have gnu tar you can use --strip=3 to remove the /var/foo/bar.

Good to also use --show-transformed if you're using the -v option to list what's being extracted.
5,049
Posted By alister
SIGHUP is sent to processes when their...
SIGHUP is sent to processes when their controlling terminal is closed. You may be interested in reading the nohup(1) man page if you'd like a process to ignore that signal.

Regards,
Alister
1,346
Posted By Perderabo
Pipe the output from sed to a shell. sed '....'...
Pipe the output from sed to a shell.
sed '....' orig-script | ksh
1,346
Posted By apmcd47
As the file is a shellscript of some kind make...
As the file is a shellscript of some kind make the script do the work:
myscript [switches] args... # does the rm/tar
myscript -n [switches] args ... # do not do rm/tarAt the start of the...
1,802
Posted By methyl
Other posters please note that the O/P has ftp...
Other posters please note that the O/P has ftp not sftp.



First time you have mentioned passwords. Obviously if your ftp command file has permissions 600 this is pretty secure.

In the end...
4,104
Posted By rdcwayx
function makeBackup () { loc="$1" [...
function makeBackup ()
{
loc="$1"
[ $# -ne 1 ] && echo "Please enter one location to backup" && return 1
[ -d "$loc" ] || echo "Location must be a directory" || return 2
mkdir -p...
4,104
Posted By Chubler_XL
How about this - it does do three searches thru...
How about this - it does do three searches thru the location (for each of the filetypes) but I can't think of a way to find all three filetypes and then have them moved to the right folers.
...
4,724
Posted By Chubler_XL
find /var/root/Applications/ -type d "fooBar*...
find /var/root/Applications/ -type d "fooBar* -maxdepth 1 2>/dev/null | while read dir
do
[ -d "$dir/Documents" ] && echo $dir/Documents
done

or

for dir in...
Showing results 1 to 8 of 8

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