09-16-2011
Quote:
Originally Posted by
Corona688
What if you do ./aisdisp* ?
I'm wondering if there's spaces in the filename or something. Try using tab-completion too, see what pops up.
No dice, good thought though.
10 More Discussions You Might Find Interesting
1. Programming
Hi,
I am trying to run simple client server c program in unix.At the compling stage server is creating an executable but the client is not.
below is the link to the source codes:
http://www.cs.rpi.edu/courses/sysprog/sockets/server.c
http://www.cs.rpi.edu/courses/sysprog/sockets/client.c
... (2 Replies)
Discussion started by: konas
2 Replies
2. Programming
I've created a c program and compiled it with gcc, in unix.
The file name is abc.c and it is run by typing the command ./abc
I have another program which creates a child process, and I need this abc program to run on that child process. I've tried execvp(), but it doesn't work.
How can I run... (2 Replies)
Discussion started by: sdsd
2 Replies
3. Programming
I created one file (test.cpp)and complied it and get the executable file(test) and run it.It is giving the out put but when I am trying to debug that executable.I am getting the error --
please tell me the solutions??
Thanks in advance ..... (2 Replies)
Discussion started by: smartgupta
2 Replies
4. UNIX for Dummies Questions & Answers
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
Discussion started by: atl@mav
5 Replies
5. Shell Programming and Scripting
Guys I placed
#!path/awk -f
placed awk script
and used $1 to call 1st inputfile inside the script.
But some where I did mistake. Could you please help me run this script as executable
I forgot to mention I also used BEGIN before placing awk script. But nothing worked out.
Script
... (2 Replies)
Discussion started by: repinementer
2 Replies
6. UNIX for Advanced & Expert Users
Dear Sir,
I am using CentOS-5.2(64-bit) as an server side OS in a cluster with 32 slaves+1 Master. My question is, after compiling a file with ifort, I am suppose to get a executable(say a.out). I want my users to do ssh slave.local and then do ./a.out
But is it possible to restrict... (0 Replies)
Discussion started by: snbanerjee
0 Replies
7. UNIX for Dummies Questions & Answers
Hey guys, so I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into... (4 Replies)
Discussion started by: Duo11
4 Replies
8. Shell Programming and Scripting
Hi,
I'm trying to run a program from the bash prompt and I don't understand why it is returning with an error.
Dig is my C program, and it takes in parameters J4, detect, 3 and 0182F98E
var1="cygdrive/c/2i/test fixture/software/mccdaqtest/debug/Dig J4 detect 3 0182F98E"
when I do
... (6 Replies)
Discussion started by: oahmad
6 Replies
9. Solaris
Hi
cannot find the path to a running process on a host.
I looked and tried some suggestions in forums to no avail.
can someone please help? I need to know where this process is starting from as we have several versions in multiple directories
--------- Process name
1201 1 0 Feb 14 ?... (14 Replies)
Discussion started by: mnassiri
14 Replies
10. Shell Programming and Scripting
I also posted this on macrumors forum, then i realized that this is a more suitable forum for matters like this. I apologize for the username, I was looking at a bag of doritos when it asked me for a username. lol
I need a program (see below for what I've tried) and I think a shell program will... (23 Replies)
Discussion started by: ilovedoritos
23 Replies
LEARN ABOUT DEBIAN
rolldice
ROLLDICE(6) Games Manual ROLLDICE(6)
NAME
rolldice - rolls virtual dice
SYNOPSIS
rolldice [ options ] dice_string dice_string ...
DESCRIPTION
rolldice rolls virtual dice. The dice strings passed on the command line contain information on the dice to roll in a format comparable to
the format used in fantasy role playing games.
OPTIONS
-h,--help
returns the usage of diceroll
-v,--version
returns the version of diceroll
-r,--random
uses /dev/random for random number generating
-u,--urandom
uses /dev/urandom for random number generating (default)
-s,--separate
prints out the result of each individual die separately, as well as the operations and totals
DICE STRING FORMAT
The dice string uses the following format:
{#x}{#}d[#|%]{*#}{+/-#}{s#}
The dice string doesn't have to be in the format that I outlined above, but this is the nicest order for me. It will try to parse any dif-
ferent string containing the same sections in the best way it can, and will throw out anything that isn't one of the sections below.
{#}d[#|%]
This is the only required part of the string, and now really isn't even required, as it defaults to 1d6 if not found. The
first number is the number of dice to roll, and the second number is the number of sides the dice have. The numbers rolled
on each die are then added up and given as the result. Hence 3d6 means "roll three six-sided dice, add them together and
return the result". If the first number is left out, then the number of dice defaults to 1. If the second number is not a
number, but a percentage sign, then the number of sides becomes 100 (for a percentage roll).
{#x} This number tells how many times to roll. For example, if you want to roll 3 6-sided dice 6 times, you would say 6x3d6.
This would return six numbers, corresponding to the six different rolls.
{*#} This number tells how many times to multiply the result of each roll. 3d6*100 would return a number in the range of
300-1800, since 3-18 is the range resulting from 3d6, which is then multipled by 100.
{+/-#} This number is the modifier to be added or subtracted, depending on the sign, from each roll. 1d4+1 would result in a range
from 2-5 (1-4 for the die, plus 1). This step is handled *after* the multiplication modifier.
{s#} This number tells the program to drop the # lowest dice rolls. This step is handled *before* the multiplication modifier.
in the order show above. For an extreme example, "3x4d6*5+1s2" would roll four six-sided dice, drop the lowest two, multiply the result by
5, add 1 to that, and repeat the process two more times, for a total of three results.
DIAGNOSTICS
The following error messages may appear on STDERR:
Failure in getting dice attributes
Either memory could not be allocated while parsing the string passed to the rolldice program or an invalid dice string was entered.
Failure in rolling dice
Memory could not be allocated while actually rolling the dice.
Unknown option
Take a wild guess ;)
BUGS
I haven't noticed any yet... rolldice is a quick hack to provide a virtual dice roller for FRPGs that I play. Any improvements are
greatly welcome, as I am not the most experienced C coder...
AUTHOR
Stevie Strickland <sstrickl@cc.gatech.edu>
VERSION
1.10 - 25 Nov 2001
Linux 25 Nov 2001 ROLLDICE(6)