Hello Daniweb Community, I was just wondering if there is anyway possible to fix this? My damn cat sat on it a fall off taking the speaker with it. [Here are the pictures.](https://www.dropbox.com/sh/77tvrhmwdmk720p/AAAjzhP7LKgqMvYlQLCQZyRYa?dl=0)

Member Avatar
+0 forum 0

Why is it that no matter how long I put the sleep command or loop, cat is unable to read the file, even though the file already exsists? Is there any way of reliably waiting for the whois to finish, write to file and then read that the file exsists?? Could this have anything to do with using network mapped diretories or using cygwin? whoisDoc=`whois -H "$query" > "/cygdrive/location/whois$query"` netName=" " orgName=" " Country=" " #Wait for whois to be written to disk escape=0 cat whois$query > /dev/null timer=$? while [ $timer -ne 0 ];do sleep 5 escape=$((escape+1)) if [ …

Member Avatar
Member Avatar
+0 forum 2

Hi Everyone, I have written a C Shell wrapper script for "cat" command in the linux such that whenever any uses the "cat" command and it logs to some file, so the script is as #!/bin/tcsh -f set command = /etc/temp/cat set logfile = /etc/cat_command.log echo "$LOGNAME + $command $argv " >> $logile $command $argv So , i have move the original "cat" command from "/bin" and replaced it with this script so whenever any one uses it logs But my problem is whenver any user uses as 1) cat sample.txt or cat 1.txt 2.txt , it will log properly …

Member Avatar
Member Avatar
+0 forum 2

I was supposed to write a program that reads and writes phone numbers of people to a file called phones.txt. The reading part works. The write part doesn't. I tried to use the cat command because I thought doing cat >> file.txt would simply append to a file. What it does instead is rewrite the file with the line going in twice. Heres the code: #!/bin/bash num=$# ch=3 cn=1 if [ $num -eq $ch ] then n="new" if [[ $1 == $n ]] then nfile="phones.txt" echo "$2\n$3\n" | cat >> $nfile #right here else echo "wrong parameter" fi elif [ …

Member Avatar
Member Avatar
+0 forum 6

The following is an exercise for my class: [INDENT][COLOR="Green"]Redirect mouse device into a file. sudo cat /dev/input/mice > rawmouse.data Move the mouse a bit and then type CONTROL-C. Note that on some distro's you'll need to sudo to bypass device files' restricted permissions. Now, cat that file to the sound card. cat rawmouse.data > /dev/dsp Sounds horrible, doesn't it. So that's how we make sound, by throwing bytes at the sound card.[/COLOR][/INDENT] I follow those directions, but it remains silent.. Any ideas why? [U]Note:[/U] I am running Ubuntu 10.10, and my sound is at max volume.

Member Avatar
Member Avatar
+0 forum 3

'k so this is my introduction. I'm about to make my verbal exam for "Abitur"/A Level in computer science and want to study either film or 3D Animation/Gamedesign I totally looooove PS2 Games like God of War and NfS and lots of others as well as computer games! And I think it's even more fun if you can program your own games and functions for a graficprogram like Gimp or Photoshop etc. Else I'm into Japan: language, culture, landscapes, music, films just everything!... korea is kind of the same. I can speak 6 languages and few things in korean (swank);) …

Member Avatar
Member Avatar
+0 forum 4

The End.