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)
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))
Hello All.
I got a simple question, but Google has not assisted me in this query.
I am using "if" to force a word under the condition that the first letter of that word must be a letter of the alphabet, regardless of capitalization, using the " "" = "" " syntax.
Like so:
Question in C Language:
i want to close the program if the content of the file /tmp/file_name is 1 (just the number 1).
dont need to check all the time, just when start the program.
something like this:
Code:
"read the /tmp/file_name"
"check if the content of the file_name is 1"
I have installed "top" to monitor memory usage (Solaris 10 10/09 s10s_u8wos_08a SPARC).
It shows, more or less, this same what vmstat. Free memory = 5580M
Code:
Memory: 2048M phys mem, 5580M free mem, 1024M total swap, 958M free swap
Code:
vmstat 1 3
Hi there,
Suppose I have 2 files:
one.dat
Code:
common one
1 20
2 30
30 40
... ...
n m
two.dat
After upgrading to openSuSE 11.2, I noticed problems launching GUI applications remotely with error messages concerning dbus.
I added this to my .bashrc file:
Code:
if [[ -n "$DISPLAY" ]] && [[ -n "$SSH_CLIENT" ]] && [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]] ; then
Hi,I'm a new slackware user.
I'm trying to build my mediacenter xbmc with Slack 13.
I've an Amd system with 2 disks configured in raid1.
A / partition as md0, /home partition as md1 and swap as md2
It works everything fine, also suspend to ram (S3) ,but not hibernate(S4).
I am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.
Here is a bash script that I want to run every 10mins via cron:
Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"
then
donothing=0
else
/usr/local/sphinx/bin/searchd