Sponsored Content
Top Forums Shell Programming and Scripting Usage of #!/bin/sh vs #!/bin/bash shell scripts? Post 302983269 by Juha Nurmela on Sunday 9th of October 2016 10:50:06 AM
Old 10-09-2016
You might consider creating your own dedicated directory for the script in question (and those that will follow Smilie. Put that directory in your path, not the ".".

Juha
 

10 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. Shell Programming and Scripting

Using #! /bin/sh in Shell scripts

Hi All, What does #! /bin/sh mean in a shell script? Is it mandatory to include in a shell script? I'm able to execute the shell script without it. Any help on this would be appreciated. (4 Replies)
Discussion started by: sumesh.abraham
4 Replies

3. Shell Programming and Scripting

Why does my /bin/csh take longer than /bin/perl?

Okay, so I have two "Hello, world!" scripts, "test.pl" and "test.sh". #!/bin/perl -w use strict; print "Hello, world!\n"; #!/bin/csh echo Hello,\ world! When I run test.pl, it runs instantly, always. When I run test.sh, it takes anywhere between 4 and 22 seconds! I'd like to know what... (3 Replies)
Discussion started by: acheong87
3 Replies

4. 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

5. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

6. Shell Programming and Scripting

Error in shell script when #!/bin/bash is used as shebang

#!/bin/ksh echo -en "\033|||'-')) echo -e "\033 The above script works fine when the interpreter is ksh, but outputs the following error when #!/bin/bash is used as shebang: test.sh: line 5: syntax error near unexpected token `(' test.sh: line 5: `case "$ACTIVATION_KEY" in +(|||'-'))' (2 Replies)
Discussion started by: proactiveaditya
2 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Usage of #!/bin/ksh

Hi, In the beginning of Shell script, we give a statement like #!/bin/ksh I have 2 questions related to this, 1) It could denote about the shell we want to use, what is the real usage of this? My shell script works even without this statement, is it a mandatory one. 2) I'm using... (7 Replies)
Discussion started by: Dev_Dev
7 Replies

9. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

10. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
SPRING-DEDICATED(6)						       Games						       SPRING-DEDICATED(6)

NAME
spring-dedicated - An open source RTS game engine - Dedicated Server SYNOPSIS
spring-dedicated [-i|--isolation] [--isolation-dir PATH] [-C|--config FILE] SCRIPT spring-dedicated --list-config-vars spring-dedicated [-h|--help] spring-dedicated --sync-version spring-dedicated [-V|--version] DESCRIPTION
Spring is a free Real Time Strategy (RTS) game engine, originally designed to play Total Annihilation ((C) 1997 Cavedog) content. It has since evolved into a general RTS engine, capable of running various kind of games (mods). It is mainly designed around online multiplayer games but can also be played in single-player mode against AIs. This is the dedicated, GUI-less server for hosting multiplayer games. You need to feed it a start script in order to have it host a game. Start script are generated by lobby clients (SpringLobby) or autho-hosts (Spads, Springie). This is the most leight-weight version of the engine, which basically only redirects network traffic, while spring-headless still runs a full blown simulation of the game. OPTIONS
-h, --help Print the options help message and exit -V, --version Display program version and exit --sync-version Display program sync version (for online gaming) and exit -i, --isolation Limit the data-dir (games & maps) scanner to one directory (see --isolation-dir and the SPRING_ISOLATED env var) --isolation-dir::'PATH' Specify the isolation-mode data-dir (see --isolation and the SPRING_ISOLATED env var) -C, --config::'FILE' Configuration file --list-config-vars Dump all default config vars in JSON-format to STDOUT DATA DIR
Data directories are searched for content, and among other things, may contain: *cache *games *maps *AI When running the engine, it may use multiple data directories, but it will use only a single one of them as writable, to write cache & log files to. FILES
~/.spring/ The default data-directory (see section DATA DIR). ~/.springrc Contains the users settings for the engine, for things like graphic and sound. /etc/spring/datadir Contains the : separated paths to additional data-dirs (see section DATA DIR). ENVIROMENT VARIABLES
SPRING_LOG_SECTIONS Selective functionality to change the verbosity (separated by ,). SPRING_DATADIR Adds additional directories Spring will search for files (separated by :). SPRING_ISOLATED If defined, Spring will stop searching files outside of the binaries directory. If it is set to a valid directory path, it will be used as the isolation directory. See the --isolation and the --isolation-dir options. SEE ALSO
spring(6) spring-multithreaded(6) spring-headless(6) HOMEPAGE
More information about Spring can be found at link: http://springrts.com AUTHOR
Spring was written by the Spring developers. This manual page was written by Marco Amadori <marco.amadori@gmail.com[1]>, for the Debian project (and may be used by others). NOTES
1. marco.amadori@gmail.com mailto:marco.amadori@gmail.com Spring package 05/10/2012 SPRING-DEDICATED(6)
All times are GMT -4. The time now is 11:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy