Hi,
New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate.
I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in VLC. After a recent catastrophic external HDD failure, everything I could recover has been moved to two computers on a LAN. Now, instead of just searching my ~/Videos folder for the files to index and play, I have to search the ~/Videos folder of a second computer as well, index those (appended to the same list, preferably), and include them in the random shuffle I've created.
I have SSH & SCP access on both machines (I recently learned how to implement passwordless-ssh using rsa & dsa keyfiles, specifically so these processes could be automated). I don't have Samba or NFS installed or working on either computer, but I'll install and configure them if need be. (Though I'd rather not install, configure, and enable NFS or Samba, edit fstab, and then auto-mount a remote folder at boot just to do this.) Just today, I've learned how to start VLC on the remote computer in network-streaming mode, and then start VLC on the local host in network-capture mode. All I'm having a hard time conceptualizing is how to implement the indexing process from a script on the local machine to list files on a remote machine.
Here's a copy of my script in its' current state. It's the first BASH scripting project I ever tackled, and 'borrowed' bits & pieces of it from various things I found via Google. I'm sure there's a better/smoother/cleaner way to do some of the things I did, but it works, and I'm happy with it. Right now, it's set to index all the episodes of The Simpsons that are in my hard drive, and then play several random episodes.
If anyone could point me in a direction or give me some pointers, I'd greatly appreciate it.
Last edited by uncertain; 05-30-2009 at 10:43 AM..
I have a program that i have to run by cron. The program needs user input. So i have to automate that in a littke script.
start of script program.sh:
result=program.log; export result
echo Program starting : `date` >> $result
/usr/local/program >> $result
echo Program running : `date` >>... (11 Replies)
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
I know that this has a bad title, but I'm not sure how to sum it up well.
(And I'm new to Linux in general, so please excuse any incorrect terminology :o)
Anyway, I'm trying to create a script that gets whatever folder you're in, and then does a command with that directory as an argument. I... (2 Replies)
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (1 Reply)
I would like to automate script where i do not have to manually insert the username and password I wrote two different scripts but not able to achieve the results: here's to scripts i wrote
#!/bin/bash
cd /var/tmp
/home/server/steve/pca --askauth -idx
/opt/app/bin/expect <<EOF
expect... (3 Replies)
Hi All,
./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)
Is there any way for this, please let me know...
1) FX Rates MDU 9) Fidessa Cash... (7 Replies)
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Hi,
Here below the logs from the mail server:
less /var/log/messages:
Sep 6 04:03:31 server-59 out: 1252227811|webmaster@zilia.com|antonino.granata@gmail.com|2175|success|1
Sep 6 04:03:33 server-59 in: 1252227813|news@tarot.com|junk@thess.com|30376|success|1
Sep 6 04:03:35 server-59... (8 Replies)
Hi all,
I need to execute a script on a remote machine that are connected to the network.The basic requirement is to write a script which will login in remote machine and then execute the other script automatically placed in remote machine.So that I need to execute the remote machine script... (3 Replies)
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
LEARN ABOUT DEBIAN
prboom-game-server
PRBOOM-GAME-SERVER(6) Games Manual PRBOOM-GAME-SERVER(6)NAME
prboom-game-server - Server for network games of PrBoom.
SYNOPSIS
prboom-game-server [ -adfnrv ] [ -e epis ] [ -l level ] [ -t ticdup ] [ -x xtics ] [ -p port ] [ -s skill ] [ -N players ] [ -c conffile-
name ] [ -w wadname[,dl_url ]]
DESCRIPTION
PrBoom is a version of the 3D shoot'em'up Doom, originally by id software. It includes, amongst other things, the ability to play with
several players connected by a tcp/ip network. prboom-game-server is the `server', that is the program that passes data between the differ-
ent players in the game.
To start a network game (often abbreviated to `netgame'), first the server is started. prboom-game-server accepts various parameters to
control the type of game (the skill level, number of players, level to play, optional WAD file(s) to load, etc).
Then each player that wishes to participate runs prboom -net hostname, where hostname is the name of the machine on which the server is
running. Each copy of prboom retrieves information about the game from the server, and when the specified number of players have joined,
the game begins.
Options-N players
Specifies the number of players in the game (default 2). The server will wait for this many players to join before starting the
game.
-e epis
The episode to play (default 1). Unless you are playing Doom 1 or Ultimate Doom, and wish to play one of the later episodes, you do
not need to change this.
-l level
The level to play (default 1).
-s skill
Specify the skill level to play (1-5).
-d Set game mode to (old) deathmatch (default is cooperative). See the original Doom docs for information about the different network
game modes.
-a Set game mode to `altdeath' (v2 deathmatch) (default is cooperative). See the original Doom docs for information about the different
network game modes.
-f Select fast mode (monsters move faster).
-n Selects nomonsters mode, i.e. there are no monsters in the game.
-r Respawn mode. If you don't know what this is, you don't want to ;-).
-c conffilename
Specifies a configuration file to read which sets parameters for the game. This is in the same format as the PrBoom configuration
file (in fact, you can ask it to read your normal PrBoom configuration file if you want). Only certain settings are acknowledged:
default_skill, default_compatibility_level, the compatibility options and some of the game settings (use -v to have the server print
the options as it recognises them).
-w wadname[,dl_url]
Specifies a WAD file to play. This is added to the internal list that the server keeps. When a client connects, the server sends the
list of WADs; PrBoom will then add this to the list of WADs specified on its command line. Optionally, an url to the file can be
given too; if when PrBoom connects it cannot find the named WAD, it will attempt to retrieve the file from the given url, extracting
it if necessary. See prboom(1) for information about the supported url types and compression formats.
-t ticdup
Reserved.
-x xtics
This causes extra information to be sent with each network packet; this will help on networks with high packet loss, but will use
more bandwidth.
-p port
Tells prboom-game-server what port number to communicate via (default 5030). Note that if you change this from the default, then
all the clients will also need to specify this number when they try to connect (the default programmed into prboom is also 5030).
-v Increases verbosity level; causes more diagnostics to be printed, the more times -v is specified.
More Informationprboom(6), boom.cfg(5)
For more information, see the README that came with PrBoom.
Doom is a registered trademark of id software (http://www.idsoftware.com/).
Author
See the file AUTHORS included with the PrBoom distribution. This man page was written by Colin Phipps (cph@moria.org.uk).
local PRBOOM-GAME-SERVER(6)