10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
While doing some checks I found a kind of interesting arithmetic factorial chart with sed, sharing this may be simple but thought to share,
# n=20;for i in `seq $n`;do printf "`seq $i|xargs|sed 's/ /*/g'`= ";echo "`seq $i|xargs|sed 's/ /*/g'`"| bc;done
1= 1
1*2= 2
1*2*3= 6... (6 Replies)
Discussion started by: rveri
6 Replies
2. Shell Programming and Scripting
Hi Guru's.
I am trying to use to check if $5 is greater than 80 & if not 100, then to print $0 :
awk '{ if ($5>80) && if ($5 != 100) print $0}
But getting error:
>bdf1|sed 's/%//g'|awk '{ if ($5>80) && if ($5 != 100) print $0}'
syntax error The source line is 1.
The error... (6 Replies)
Discussion started by: rveri
6 Replies
3. UNIX for Dummies Questions & Answers
Hi guys
Quick question
Im creating an FTP server and im chrooting each user to there home directory blah blah. Ive also setup scponly so there locked etc.
Im a novice at unix and have just reaslised the primary group of scponly is the username of one of the ftp users... which im sure... (1 Reply)
Discussion started by: mokachoka
1 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
Quick question from a fairly new to Unix developer.
if
then
completedLogFile=$logfile.$(date +%Y%m%d-%H:%M:%S)
mv $logfile $completedLogFile
fi
I understand that this portion of code is simply copying a tmp logfile to a completed logfile when a condition is true. The... (2 Replies)
Discussion started by: JohnnyBoy
2 Replies
5. UNIX for Dummies Questions & Answers
from command prompt I did grep two words on a same line for eg: grep abc | grep xyz and I got tht particular line, but I want to know when I vi that file how to directly search for that particular line? I appreciate if any one can provide answer, thanks in advance (2 Replies)
Discussion started by: pkolishetty
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Is there a simple way, using ksh, to find the byte position in a file that a stated character appears?
Many thanks
Helen (2 Replies)
Discussion started by: Bab00shka
2 Replies
7. Shell Programming and Scripting
Hi i just wanted to know is there anyway to log the keystrokes on a remote computer? For example i let my nieces play on my other computer downstairs *my computer and the one downstairs are on a LAN* and i want to see everything they type in to make sure they arent doing anything they are supposed... (1 Reply)
Discussion started by: Corrail
1 Replies
8. UNIX for Dummies Questions & Answers
Hi, I am new to UNIX, and am learning from this tutorial : http://www.ee.surrey.ac.uk/Teaching/Unix/index.html
It keeps telling me to files downloaded from the internet (like .txt files) to the directory, and I dont know how to.
How do I add .txt files to my directory? Thanks. (6 Replies)
Discussion started by: IAMTHEEVILBEAN
6 Replies
9. UNIX for Dummies Questions & Answers
Hello There!
I am trying to write this SIMPLE script in Bourne Shell but I keep on getting syntax errors. Can you see what I am doing wrong? I've done this before but I don't see the difference. I am simply trying to take the day of the week from our system and when the teachers sign on I want... (7 Replies)
Discussion started by: catbad
7 Replies
10. UNIX for Dummies Questions & Answers
I know in DOS, when you want to pull up your last/previous command, you hit the up/down arrows. How do you do that with UNIX? (3 Replies)
Discussion started by: Tracy Hunt
3 Replies
ARMAGETRONAD-DEDICATED(6) Games Manual ARMAGETRONAD-DEDICATED(6)
NAME
armagetronad-dedicated - an Armagetron Advanced dedicated game server
SYNOPSIS
/etc/init.d/armagetronad-dedicated start|stop|restart|force-reload|status
armagetronad-dedicated [-h, --help] [-v, --version] [--doc] [--fastforward] [--benchmark] [--record] [--playback]
DESCRIPTION
The Armagetron Advanced dedicated server runs from an initscript -- to enable running it on boot, edit /etc/default/armagetronad-dedicated.
The server program will read default settings from /etc/armagetronad/settings_dedicated.cfg. Modifications and custom server settings
should be implemented in the file /etc/armagetronad/settings_custom.cfg.
To edit configuration on-the-fly or make time-sensitive temporary changes, it's best to log onto the server from the armagetronad client
and log on as an administrator (using the password set in the server configuration). Console input is not available when running the server
as a daemon.
Before each round is started, the file /etc/armagetronad/everytime.cfg is read; it may be useful to use this for things like randomly
changing maps or other quickly changing settings.
OPTIONS
Note: Only options that are relevant for invoking armagetron-dedicated via the command line (and not the initscript) are documented here.
See armagetronad-dedicated --help for a complete reference.
-h, --help
Show help message.
-v, --version
Print version number.
--doc Print documentation for all console commands. These are also configuration settings for config files.
--fastforward TIME
Lets time run very fast until the given time is reached.
--benchmark
Renders frames as they were recorded.
--record FILENAME
Creates a DEBUG recording while running.
--playback FILENAME
Plays back a DEBUG recording.
FILES
/etc/armagetronad/settings_dedicated.cfg
SEE ALSO
armagetronad(6)
Armagetron Advanced is documented fully by the provided HTML docs, found under /usr/share/doc/armagetronad-common/html/.
A thorough guide to running a server can be found on the Armagetron Advanced wiki: http:wiki.armagetronad.netindex.phpServer_Administra-
tion_Guide and: http:wiki.armagetronad.netindex.phpAdvanced_Server_Administration_Guide
AUTHOR
Armagetron Advanced was written by Manuel Moos <z-man@users.sourceforge.net> and the Armagetron Advanced development team.
This manual page was adapted from the original HTML version by Marcelo E. Magallon <mmagallo@debian.org> (and later Christine Spang
<spang@mit.edu>), for the Debian GNU/Linux system (but may be used by others).
February 08, 2007 ARMAGETRONAD-DEDICATED(6)