Sponsored Content
Full Discussion: Call stack /bin/sh
Top Forums Shell Programming and Scripting Call stack /bin/sh Post 302992827 by RudiC on Thursday 2nd of March 2017 05:48:17 AM
Old 03-02-2017
If a function called "main" is the caller, it will show up. In above, there is no "main"; sh as the basic shell is the caller, assigned to FUN when we do FUN=$0. Make that FUN=main if need be.
This User Gave Thanks to RudiC For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies

2. AIX

core file missing part of call stack

It seems that since the Upgrade from aix 4.3 to 5.2 the corefiles are somehow truncated. I tried the debuggers ddd, xldb and gdb everytime the same results. i found this on the IBM site: IBM Information center: If some entries appear in the Call Stack monitor but others are missing, this... (1 Reply)
Discussion started by: Lazzar
1 Replies

3. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

4. Shell Programming and Scripting

Call Nice command (priority) from /bin/ksh

Hello, I am just starting with shell scripting, as everyone will soon see from my question. What I'm trying to do is call the Nice command to set the script process priority from /bin/ksh. The difference is I'm running it not directly through the shell, but through Bigfix (very similar to... (3 Replies)
Discussion started by: solly119
3 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. Shell Programming and Scripting

Possible to use /usr/bin/watch to call a function?

I want to have a script both define functions and have the ability to run an external program calling one of them. This is the simplified construct: #!/bin/bash foo() { echo "this is foo" } bar() { echo "this is bar" } case "$1" in one) foo ;; two) export... (1 Reply)
Discussion started by: graysky
1 Replies

7. UNIX for Dummies Questions & Answers

View User Mode Call Stack of Hung Process

I have a multithreaded usermode program(actually a daemon) which is in hanged state. To debug it I tried attaching the process to gdb, but the gdb hangs. gstack also gets hanged. I peeped into the proc file system and saw the process to be in sleeping state. /proc/sysrq-trigger I guess... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

8. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
KOULES(6)							       games								 KOULES(6)

NAME
xkoules - Action game for X11 SYNOPSIS
xkoules [-SxslMmpdh] KOULES FROM THE TOP
: . --- . . O / . . | | . . .. --- / / X O --- | O| O/ --- --- . O /O O . . . . | | . . . / . .X. . O --- . . . . . . . . ... . . . . . . . . . . . H A V E FUN ! DESCRIPTION
Koules is an action game. The mission is to bounce all koules fighters from your sector OPTIONS
-h for help -s for small display(320x250) for slow machines -l for large display(640x480) default size -m for monochrome displays -b for black and white mode -p use private colormap -y Synchronize with X use only for debugging -f Disable palette fading -d Disable sound support Game will run faster. -x Disable X11 pointer Use game's own cursor when standard X11's cursor is blinking -M DISABLE shared memory support Slow down the game. Use only if shared memory support crashes. Network options -C<host> run koules as network client -S run koules as network server -P<port> select port. Default is:12345 Use this in case that some other program is already using this port. Server options -W run server in width mode-support for 320x200 svgalib and OS/2 clients. Use this in case that server is refusing your clients. -L<level> select level for server -D<number> select dificulty for server: 0: nightmare 1: hard 2: medium(default and recomended) 3: easy 4: very easy -K run server in deathmatch mode Points: Bounce something : +1 Eat extension : +10 Eat thief : -30 Eat friend : +30 At end of level every live : +20 every lost level : -100 In deathmatch mode every destroyed concurrent: +100 PORTABILITY
The program is written in ANSI C and uses the X11 graphics library. BUGS
/LIMITATIONS Joystick is supported only on Linux. SEE ALSO
http://www.paru.cas.cz/~hubicka/koules/English/koules.html AUTHOR
Jan Hubicka email: hubicka@paru.cas.cz smail: Jan Hubicka Dukelskych bojovniku 1944 Tabor 39001 Czech Republic Linux 28 Jul 1995 KOULES(6)
All times are GMT -4. The time now is 01:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy