Re: FQDN vs. domain in /etc/hosts

2009-01-29 Thread Stefan Schmidt
So both addresses are unambiguous. For what reason now would I need a FQDN? Why wouldn't a domain name suffice? Typically, I see it that a domain refers to an entity, whereas a FQDN refers to a host or service within that entity. For your purposes the following sdhould be sufficient:

Re: FQDN vs. domain in /etc/hosts

2009-01-04 Thread Stefan Schmidt
Thanks for your feedback! So both addresses are unambiguous. For what reason now would I need a FQDN? Why wouldn't a domain name suffice? What happens when you want/need to add another machine ? I use the domain solely for private purposes and I will probably never need more than two or thre

FQDN vs. domain in /etc/hosts

2009-01-04 Thread Stefan Schmidt
Hello, in my understanding the /etc/hosts file should contain an entry with the FQDN of the host. 123.123.123.123 hostname.domain.tld hostname I would for simplicity prefer to use a domain name instead of a FQDN. 123.123.123.123 domain.tld hostname In my DNS-configuration I can define an IP

FQDN vs. domain in /etc/hosts

2009-01-04 Thread Stefan Schmidt
Hello, in my understanding the /etc/hosts file should contain an entry with the FQDN of the host. 123.123.123.123 hostname.domain.tld hostname I would for simplicity prefer to use a domain name instead of a FQDN. 123.123.123.123 domain.tld hostname In my DNS-configuration I can define an IP-

Re: Create single PDF out of several other files

2008-07-16 Thread Stefan Schmidt
If the files are all PDF, then pdftk can easily join them in another PDF. For Postscript, they can easily be converted to PDF and then joined. I believe there was a KDE extension that allowed some pdftk operations in an "easy" graphical way. But I do not remember in which package it was.

Re: Bash: pipe once more

2008-07-14 Thread Stefan Schmidt
> cd does not seem to do its thing when stdout is redirected to a pipe, > however it does work with a (temporary) file: > > cd bad > cd.out 2>&1 > cat cd.out > rm cd.out I ultimately came up with this variant: #!/bin/bash LOG_FILE="/home/stefan/log/output.log" TEMP_LOG="/home/stefan/log/temp.l

Re: Bash: pipe once more

2008-07-13 Thread Stefan Schmidt
> >if I pipe the output of a cd command the working directory doesn't > change. > > That's because all elements of a pipeline except the last are run in > different processes to the main shell that starts the pipeline. As such, > the cd command is running in a subshell which exits when cd exits. T

Re: Bash: pipe once more

2008-07-13 Thread Stefan Schmidt
> cd does not seem to do its thing when stdout is redirected to a pipe, Is this behaviour a bug or a feature? Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: Bash: pipe once more

2008-07-13 Thread Stefan Schmidt
> > , > > | $ cd ~/bin 2>&1 | tee -a output.log; pwd > > | /home/stefan > > ` > > > > How come and how can I get this to work? > > Sorry, but I am not sure quite what you are trying to achieve. Maybe I > am missing the point! I want to change the working directory and if there is an err

Bash: pipe once more

2008-07-13 Thread Stefan Schmidt
Hello, if I pipe the output of a cd command the working directory doesn't change. , | $ cd ~/bin 2>&1 | tee -a output.log; pwd | /home/stefan ` How come and how can I get this to work? Stefan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Con

Bash: pipe once more

2008-07-13 Thread Stefan Schmidt
Hello, if I pipe the output of a cd command the working directory doesn't change. , | $ cd ~/bin 2>&1 | tee -a output.log; pwd | /home/stefan ` How come and how can I get this to work? Stefan P.S. Sorry if this gets double-posted -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a

Re: Bash: trap vs. tee

2008-07-13 Thread Stefan Schmidt
> Closing quotes are missing, but your script hopefully has them. Yes, indeed ;) > Because the exit status of the pipe is that of the last command, and tee > has no reason to complain: I was suspecting something like that, but unfortunately I had misinterpreted the output of my debugging variat

Bash: trap vs. tee

2008-07-13 Thread Stefan Schmidt
Hello, I have a bash script with trap, but the trap doesn't catch the error. function handle { echo "This should be reached exit 1 } trap handle ERR ls nonexist | tee -a output.log echo "This should not be reached" outputs ls: nonexist: No such file or directory This should not be reached How

FQDN vs. domain name

2008-07-11 Thread Stefan Schmidt
Hello, there are three files on my vps which contain the following data inserted by my provider. # /etc/hostname lvps123-123-123-123.dedicated.hosteurope.de # /etc/hosts 127.0.0.1 localhost localhost.localdomain 123.123.123.123 lvps123-123-123-123.dedicated.hosteurope.de lvps123-123-123-123 #