09-24-2008
foo
if [ `echo ${cld}foo|grep $dow` ]; then
echo Its Cold for $sid at $c_dst
$jobroot/scripts/abc.sh $sid COLD $c_dst
elif [ `echo ${hot}foo|grep $dow` ]; then
echo Its Hot for $sid at $h_dst
$jobroot/scripts/abc.sh $sid HOT $h_dst
else
echo No backup for $sid today
wat does foo do ??
Last edited by bn_unx; 09-24-2008 at 04:46 PM..
Reason: ....
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
I have a situation where I have a web root directory with a few thousand users spread out into 100 subdirectories in a 00/firstname.lastname, 01/firstname.lastname, etc. hierarchy. I suddenly need to make sure that each of these user directories contains a default index.html file... (6 Replies)
Discussion started by: dkaplowitz
6 Replies
2. Shell Programming and Scripting
I need a way to grep -v a list of times/date from the output of postqueue -p that are a few hours old, in order to remove them with postsuper -d.
Right now I have a script that is deleting the previous day of messages left in the queue, which runs once each day.
I want to clean up the job and... (1 Reply)
Discussion started by: DoneWithM$
1 Replies
3. Shell Programming and Scripting
Hallo,
I need to test a String (a special ip number-string).
So I want to run that:
ipadress=172.0.0.0
# for debugging:
echo $ipadress | egrep -e '172\.?\.??\.??$'
# the test that doesnt work
if test -z `echo $ipadress | egrep -e '172\.?\.??\.??$'` != ""
then
echo "match"
else... (1 Reply)
Discussion started by: wiseguy
1 Replies
4. Shell Programming and Scripting
I'm very very new to shell scripting (about 4 hours)
i've google'd till i can't google no more
is it possible to have store values in a config file .e.g
/etc/foo.conf
data=/home/
mount=/dev/sda1
size=1GB
and access these values from a shell script but also
be able to use... (3 Replies)
Discussion started by: xpd259
3 Replies
5. Shell Programming and Scripting
Suppose I have a text file that contains the tags <foo> and <bar>. The text file can have unlimted occurances of <foo> and <bar> and looks somthing like this:
<foo>
Some
Text
<foo>
Some
Text
<bar>
Some
Text
<foo>
Some (1 Reply)
Discussion started by: ArterialTool
1 Replies
6. UNIX for Dummies Questions & Answers
Hi:
How can I remove my own post?
Thanks. (2 Replies)
Discussion started by: phil518
2 Replies
7. UNIX for Dummies Questions & Answers
I'm not all that much of a newbie but I've not encountered this before. Happens both in Cygwin and in Mac OS X (Darwin):
cp -R /path/to/foo/.* /path/to/bar
(where directory 'bar' exists)
... seems to copy not only the contents of directory 'foo', but also other directories that are... (3 Replies)
Discussion started by: ChapHarrison
3 Replies
8. UNIX for Dummies Questions & Answers
Sometimes it works for me and sometimes I get this error:
syntax error on line 1, teletype
Basically I've got no idea whats going on, especially at the end of the command: bc
Any help is appreciated (1 Reply)
Discussion started by: phunkypants
1 Replies
9. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
LEARN ABOUT DEBIAN
sid2wav
sid2wav(1) User Commands sid2wav(1)
NAME
sid2wav - output wav files out of sid files
SYNOPSIS
sid2wav [-commands] <datafile>|- [outputfile]
DESCRIPTION
Sid2wav is a synthetic waveform generator from sid files, named after the Sound Interface Chip found in Commodore 64 personal computers.
With this tool, one can 'convert' sid files to wav ones that popular music players like XMMS can play. Note that you don't have to convert
sid files just to listen them, sidplay can play it for you just as it would sound on a real C64. Also, XMMS has an input plugin to play sid
files directly. The use is that you may convert sid tunes to wav and later to any compressed format like Ogg or MP3 for users lacking sid-
play. Other use would be to convert files to wav for audio CD creation.
COMMANDS
-h gives help on usage.
-f<num>
set frequency in Hz (default: 44100).
-16 16-bit (default: 8-bit)
-s stereo (default: mono).
-ss enable stereo surround.
-u au output (8000Hz mono 8-bit u-law).
-o<num>
set song number (default: preset).
-a improve PlaySID compatibility (not recommended).
-a2 transparent ROM memory mode (overrides -a).
-n enable NTSC-clock speed for VBI tunes (not recommended).
-nf no SID filter emulation.
-ns MOS 8580 waveforms (default: MOS 6581).
-m<num>
mute voices out of 1,2,3,4 (default: none). Example: -m13 (voices 1 and 3 off).
-t<num>
set seconds to play (default: 60).
-b<num>
skip first <num> seconds into the song (default: 0).
-fin<num>
fade-in time in seconds (default: 0).
-fout<num>
fade-out time in seconds (default: 2).
SEE ALSO
sidplay(1), xmms (1).
AUTHORS
Michael Schwendt <sidplay@geocities.com>
Adam Lorentzon <d93-alo@nada.kth.se>
This manpage was written for the Debian GNU/Linux system by Laszlo 'GCS' Boszormenyi <gcs@lsc.hu> (but may be used by others).
Sidplay May, 2004 sid2wav(1)