Search Results

Search: Posts Made By: Danny.Chouinard
1,943
Posted By Danny.Chouinard
File
Hello.

As you can see by checking file's manual page (man file), the file command looks up file signatures in /etc/magic (usually).

That file basically says stuff like "If you see this and this...
2,017
Posted By Danny.Chouinard
Are you going to include "I got these on...
Are you going to include "I got these on www.unix.com" in your answers?

Besides, a true SysAdmin doesn't care much about distros,she selects one that's closest to her needs and then tweaks it to...
Forum: Programming 08-26-2008
3,438
Posted By Danny.Chouinard
Trying to sync X11 application with vertical retrace.
Hi!

I'm trying to write an X11 application with the Xext extension and I'd like to update window content during/after the vertical retrace so they appear smoothly and don't shear.

I've found...
Forum: Programming 08-26-2008
2,238
Posted By Danny.Chouinard
When mplayer can't find a proper mp3 block header...
When mplayer can't find a proper mp3 block header where it expects it to be, it tries to "rewind" back in the data stream to try to get its footing. Sometimes that fails and it then has to walk over...
Forum: Linux 08-23-2008
15,567
Posted By Danny.Chouinard
You might also want to check the manual pages for...
You might also want to check the manual pages for setpgid() if you really want to dissociate the forked process from the parent.
Forum: Programming 08-23-2008
62,602
Posted By Danny.Chouinard
Should be said: vxWorks isn't Unix.
Should be said: vxWorks isn't Unix.
3,403
Posted By Danny.Chouinard
"UNIX" can mean a lot of things. Ok, here's...
"UNIX" can mean a lot of things.

Ok, here's what you can do, replace lpr with a script.

First, find out where it lives. Let's say for example it's /usr/bin/lpr.

Then replace with a script...
2,562
Posted By Danny.Chouinard
You also really should put a "sleep 1" in the...
You also really should put a "sleep 1" in the loop, as executing the date program non-stop like that will eat up your CPU cycles like crazy.

No point in printing the time zillions of times every...
2,166
Posted By Danny.Chouinard
echo $variable | tr " " "\012" or for f...
echo $variable | tr " " "\012"

or

for f in $variable; do echo $f; done
1,789
Posted By Danny.Chouinard
Notice that in your ls output, there doesn't seem...
Notice that in your ls output, there doesn't seem to be a name for that link. It's possible it's been created with a non-printable character.

Try `ls -lb`

That should list it with...
3,755
Posted By Danny.Chouinard
Here's a way to process more than one variable at...
Here's a way to process more than one variable at a time:

file=somefile
varlist="MOLECULE ECUT"
for var in $varlist ; do
val="`grep \"^$var \" < $file | sed \"s/^$var //\"`"
eval...
3,403
Posted By Danny.Chouinard
Also, depending on the OS and queuing system...
Also, depending on the OS and queuing system used, you could write a simple printer filter as a shell script that would do the work for you. So... What OS and printing system are you on?
6,813
Posted By Danny.Chouinard
Actually, you should quote the -name pattern if...
Actually, you should quote the -name pattern if it contains wildcards, otherwise it'll break if you have more than one match:

$ ls
345test567 768test234
$ find . -name *test* -print
find:...
3,755
Posted By Danny.Chouinard
VARIABLE="`grep MOLECULE < FILE | sed...
VARIABLE="`grep MOLECULE < FILE | sed 's/^MOLECULE //'`"
should do it.
8,252
Posted By Danny.Chouinard
cat'ting a file into a pipe is almost never...
cat'ting a file into a pipe is almost never necessary and creates an extra unnecessary process. cat should only be used to concatenate files.

Instead do:

less file

or

less < file
1,823
Posted By Danny.Chouinard
read can separate line content into multiple...
read can separate line content into multiple variables already separated by $IFS, so no need to cut the line:

while read parent id; do
[ $parent = 45 ] && kill $id
done < file
Forum: Red Hat 07-15-2008
4,020
Posted By Danny.Chouinard
Interactive vs. non-interactive path.
Your buffer utility might not be in your remote shell's non-interactive PATH. You could use the full pathname in your command line so it finds it, like so:

tar cf .... | ssh .......
36,777
Posted By Danny.Chouinard
You can also tell find to find files that are...
You can also tell find to find files that are newer than one file.
find . -type f -newer timestamped_file -print
will print all the files that were modified since the last time timestamped_file was...
3,726
Posted By Danny.Chouinard
>&2 re-directs the output to file descriptor 2,...
>&2 re-directs the output to file descriptor 2, which is called "Standard error", a channel used for outputting errors usually.

It's common unix practice.
Forum: HP-UX 05-15-2008
16,223
Posted By Danny.Chouinard
On Solaris, the proper syntax for the...
On Solaris, the proper syntax for the /etc/dfs/dfstab file consists of executable lines that begin with the share command.

Like so: share [-F fstype] [ -o options] [-d "<text>"] <pathname>...
4,497
Posted By Danny.Chouinard
Check with od.
Hi.

Try od -c A.lst , I'm also of the opinion that there's something funky in it.

Also, in your last code example, you didn't replicate the quotes around the grep pattern. Those make a large...
Showing results 1 to 21 of 21

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