Tired searching for this but I have no idea what this is called so bear with me please..
(variable substitution?)
(parameter expansion?)
Code:
run_repeatedly()
{
NUM=0
while [ <irrelevant stuff here> ]
do
NUM=$((NUM+1))
Hi All,
I am using Sun 5.9.
I am putting the value "Feb 10" in variable 'c' here.
Code:
-bash-3.00$ c=`date | awk '{print $2 " " $3}'`
-bash-3.00$ echo $c
Feb 10
But when I am grep-ing value of 'c', I am getting this error.
Code:
-bash-3.00$ ls -lrth | grep $c
I am using Ubuntu 9.10. I have downloaded MythTV frontend and attempted installing and using Hauppage USB WinTv -HVR 950Q tuner. On TVTime I get "no signal". I attempt configuring source but ge nowhere.
I get compilationserror on this script, and it doesnt says reallt whats wrong, so can anyone see whats worn in the code? Is it ok to type the first line like that??(date).
Thanks!
[START CODE]
time= 'date +%H:%M'
if [$time -lt 12]; then
txt="Good morning "
elif [$tid -lt -lt 19]; then
txt="Good afternoon "
else
Code:
x = self.spinbox37.value() * 40
y = self.spinbox38.value() * 40
printer = str(self.comboBox4.currentText())
print_cmd = 'echo "IN;PU" x "," y | lpr -P %s %s'
self.LCDNumber18.display(x)
Hey Guys! I am trying to figure out how to make my while loop determine if the parameter typed in is a directory, my loop looks like this, but for some reason, every time i run ./myscript /etc or any other directory, it does not recognize it as a directory, hope you can help,
bmt
# make_page - A script to mimic the tree command
Hello!
I'd like to execute a script after suspend to RAM.
What I did:
Put a test script file into: /usr/lib/pm-utils/sleep.d
Set it to executable.
The content is:
Code:
#!/bin/sh
case "$1" in
thaw|resume)
/usr/bin/kdialog --msgbox "Boo"
Hey Guys,
I am not sure how do I achieve the result but here is the story. I have a script which prompts for the IP Address and read that value and validate if reachable. If not then it should keep on prompting until the IP is reachable. I tried using until loop as well as while loop but dang..
Any help would be much appreciated
Here are the codes
Hello Everybody,
I have Ubuntu 9.10 installed on my laptop. And I am
trying to connect to the interneet.
I attached the network cable to my laptop and
it recognizes the network.
But when I go to:
"VPN Connectios ==> Configure VPN"
a window appears and in that window at "VPN"