Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with basic script - not working.. Post 302919645 by Scott on Thursday 2nd of October 2014 06:47:58 PM
Old 10-02-2014
Or, alternatively, use the line continuation character:

Code:
#!/bin/ksh
for SERVER in \
NEWSNYD403P \
NEWSNYD404P \
...
do
  /usr/bin/scp "/home/sam/bash.tar root@$SERVER":/tmp
done

 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Basic variable expansion not working...

#!/usr/bin/bash if then echo "Not valid arguments entered. Just username should be entered." else USER_NAME=$1 FILE_NAME=$USER_NAME.info UNN=STUDIN\\\\$1 echo $UNN last STUDIN\\\\$1 last UNN If I type `last STUDIN\\eip060` it works but if I try to expand it with variable it is... (5 Replies)
Discussion started by: Zammy_bg
5 Replies

2. Shell Programming and Scripting

Basic script?

All, I have a list of over 400 users that need certain directories created. These will be created in /users/$username on a system and I need a directory called chess under these directories that I create. Instead of me manually adding each one (mkdir /users/user1, mkdir /users/user1/chess)... (1 Reply)
Discussion started by: kjbaumann
1 Replies

3. Shell Programming and Scripting

I need help with a basic script

a) Total number of words in the file. b) Total number of different words in the file. How can I use the translate and/or unique commands to accomplish this (4 Replies)
Discussion started by: EECSDAVE
4 Replies

4. Shell Programming and Scripting

a very basic sed one-liner...that isn't working :-(

Greetings all. :) I would like to use sed to join all non-blank lines together in a particular file. I was thinking I could do this by simply replacing the terminating, new-line character on every line which is not blank, but I must be missing something in my sed line: $ sed... (3 Replies)
Discussion started by: SteveB-in-LV
3 Replies

5. Shell Programming and Scripting

Script is not working from cron while working manually

Hello, I am facing a very strange problem when I run my script manuallu ./Fetchcode which is using to connect with MKS integrity from linux end it workks fine but when I run it from cron it doesn't work.Can someone help me 1) How could I check my script when it is running from cron like... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies

6. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

7. Shell Programming and Scripting

Need a little help with my first shell script. Basic image resize script...

Hey everyone, just now joined because I didn't want to go onto Ubuntu forums and start asking about how to write shell scripts. Seems like this is a pretty active forum for exactly what I need. I'm trying to modify a shell script I found online, the end goal is to have it find all files in the... (9 Replies)
Discussion started by: mozzles
9 Replies

8. Shell Programming and Scripting

Basic Shell script - Not working

Hello, This is basic (i think). I am trying to run a shell script which would go into each folder (folder names defined in the list) and after entering would run some commands, once done, come out of the folder and continue until the list ends. Pretty basic and there are bunch of example online. ... (9 Replies)
Discussion started by: Zam_1234
9 Replies
QUAKE-SERVER(6) 						   Games Manual 						   QUAKE-SERVER(6)

NAME
quake-server - dedicated server for Quake SYNOPSIS
quake-server [WRAPPER-OPTIONS] [ENGINE-OPTIONS] [ENGINE-COMMANDS]... DESCRIPTION
This manual page documents briefly the quake-server command. Quake is a popular first-person shooter game that appeared in 1996, released by iD Software. This wrapper script will launch the Quake dedicated server. The game data needs to be installed independently using the 'game-data-packager' program, and by default it will be looked for at /usr/share/games/quake. This wrapper script accepts the two common GNU-style options to get information on the program. Any further arguments are passed to the engine unmodified. Consult the engine documentation for full details, but most engines support a syntax whereby engine switches are pre- fixed with a minus sign, and you can give console commands by prefixing with a plus sign. See the examples section for some common cases. OPTIONS
These options are accepted for WRAPPER-OPTIONS in the synopsis. -h, --help Show summary of options. -v, --version Show version of program. SEE ALSO
quake(6), quakespasm(6), game-data-packager(6). AUTHOR
This manual page, and the Quake wrapper script, were written by David Banks and Simon McVittie for the Debian project (and may be used by others). 2011-06-22 QUAKE-SERVER(6)
All times are GMT -4. The time now is 01:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy