Gina,
The more details we have about the question, the better and more
accurate we can answer.
In any event, here is one way to write the value of a variable into a file:
Be aware the difference between ">" (initializing the file) and ">>" (append
to the file).
I have a script that I'm trying to shorten (below) by removing repetitive code.
if ]
then
commodity_ndm_done=Y
fi
if ]
then
customer_ndm_done=Y
fi
if ]
then
department_ndm_done=Y
fi
if ]
then
division_ndm_done=Y
fi (3 Replies)
Hello,
FIRST QUESTION:
I am writing a script in which a query is taken at the beginning of the script to be later used at the end. In the query, variables are generated from a loop, and I would like to assign the variable NAME (not value) with an appended 1, 2, 3, 4.....n. The number of... (2 Replies)
Hello everybody,
I am having problem in converting byte array variables to Hexa String variables for Linux. I have done, converting byte array variables to Hexa String variables for Windows but same function doesn't work for linux. Is there any difference in OS ? The code for Windows is given... (2 Replies)
I can't for the love of me figure out how to work with double quotes and single quotes in variables in bash scripts. For instance, I added the following line to my .bash_aliases file:
WINDOWS="'/host/Documents and Settings/Solar Zenith/My Documents'";
I want this so that I can go straight to 'My... (2 Replies)
I need to define a variable of variable. I'll try to explain it.
I've a list:
LIST="aaa bbb ccc"I need to do something like:
for word in LIST ;do
res_$word=`ls $word`
done
This doesn't work. Any idea?
Thanks (3 Replies)
Hi All,
i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more good and precise way??
#!/bin/ksh
##script is sample.ksh
age=$1
gender=$2
class=$3
.
.
.... (3 Replies)
Sometimes it is handy to protect long scripts in C++.
The following syntax works fine for simple commands:
#define SHELLSCRIPT1 "\
#/bin/bash \n\
echo \"hello\" \n\
"
int main ()
{
cout <<system(SHELLSCRIPT1);
return 0;
}
Unfortunately for there are problems for:
1d arrays:... (10 Replies)
Below are three variables, which I want to pass into variable RESULT1
username1=userid
poihostname1=dellsys.com
port1=8080
How can I pass these variables into below code...
RESULT1=$((ssh -n username1@poihostname1 time /usr/sfw/bin/wget --user=sam --password=123 -O /dev/null -q... (4 Replies)
Discussion started by: manohar2013
4 Replies
LEARN ABOUT DEBIAN
startfluxbox
STARTFLUXBOX(1) Fluxbox Manual STARTFLUXBOX(1)NAME
startfluxbox - start a fluxbox session
SYNOPSIS
startfluxbox
DESCRIPTION
startfluxbox is a script which runs the file ~/.fluxbox/startup If it doesn't exist it will be generated.
startfluxbox should be started from your ~/.xinitrc if you use startx, or ~/.xsession if you run a display manager, like xdm.
FILES
~/.fluxbox/startup
This file contains all commands that should be executed before fluxbox is started. The initial file contains helpful comments for
beginners. It also starts fluxbox.
EXAMPLES
The default ~/.fluxbox/startup is as follows:
#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.
# Change your keymap:
xmodmap "$HOME/.Xmodmap"
# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log "$fluxdir/log"
If you need to start applications after fluxbox, you can change the exec fluxbox line above to something like this:
exec fluxbox &
fbpid=$!
sleep 1
{
xsetroot -cursor_name left_ptr -fg white -bg black &
ipager &
gkrellm2 &
} &
wait $fbpid
So xsetroot, ipager, and gkrellm2 will all be started after fluxbox, after giving fluxbox 1 second to startup.
For more details on what else you can do in this script, see sh(1), or the documentation for your shell.
AUTHORS
The author of startfluxbox(1) is Han Boetes <han at fluxbox.org>
This manpage was converted to asciidoc format by Jim Ramsay <i.am at jimramsay.com> for fluxbox-1.1.2
SEE ALSO fluxbox(1)AUTHOR
Jim Ramsay <i.am@jimramsay.com>
Author.
startfluxbox.txt 28 October 2011 STARTFLUXBOX(1)