How i can place in a log file an automatic chrome opener?
Okay, so i have this problem, i have a raspberry with rasbian lite (now i have openbox running on) and i do a few script for my client. But i have a question and a problem.... i got the logs file, that file need to open automatically the browser without having to do all the steps again at the next startup(i run this bash file every start up automatically)
thats my script (im from italy ):
Code:
#!/bin/bash
clear
if [ -f logs.sh ];
then echo "sarai reindirizzato alla tua pagina di default di "; cat logs.sh
exit 0
fi
echo "Da che scuola provieni?"
sleep 1
echo "Sono disponibili queste opzioni:"
sleep 1
echo "[1] CPC Belli"
echo "[2] CPT Locarno"
echo "[3] CPC Chiasso"
echo "[4] SPSE Tenero"
sleep 1
testo="Okay ora verrai reindirizzato nel sito web di"
echo "Inserisci il numero della scuola che frequenti:"
read NUM
case $NUM in
1) echo "$testo CPC Bellinzona"
chromium-browser £INTERNET WEBSITE£
;;
2) echo "$testo CPT di Locarno"
chromium-browser £INTERNET WEBSITE£
;;
3) echo "$testo CPC di Chiasso"
chromium-browser £INTERNET WEBSITE£
;;
4) echo "$testo SPSE Tenero"
chromium-browser £INTERNET WEBSITE£
;;
*) echo "La tua scuola non è presente in lista"
esac
echo "chromium-browser $NUM" >> logs.sh
exit 0
this is the error, its not a error but i dont know how to set in default the person choise in the case
Code:
sarai reindirizzato alla tua pagina di default di $1
Hi,
I have 6 servers, I want to make a script to read the messages (/var/adm/messages) file daily in the morning and send it automatically to my E-mail address.
Regards (2 Replies)
Hi there:)
Because of security requirements, It would be much better if I could truncate my logs in place using sed -i (or ?). I cant use the -i option on sed in my environment.
Can anyone help a DBA? (5 Replies)
Is in Unix a tool that could do this:
paste -d":" 'file1' 'file2' | special_save "file1" # so that file1 would be treated in a way that would prevent problems with race condition
I know it normally doesn't work but is there any intelligent way how to avoid using temporary file? I know methods... (6 Replies)
Dear Gurus,
I need you to advice or suggestion about the best solution to copy data around 200-300G from serverA(location A) to serverB(location B). Normally, I will share folder and then copy but it takes too long time(about 2 days).
Do you have any suggestion or which way should be... (9 Replies)
Hi,
I want to open a pdf file in my PCLinuxOS, but when I click on the PDF file to open it, a message box prompts asking for Open With : KGhostView ; Save File....etc.
So the default pdf genereator to open is set to KGhostView. How do I change the default to KPdf, another pdf generator..
... (3 Replies)
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:
1. given an inode, how do I find exactly the name of the file?
I know I could do this using ls -i | grep <inode>
but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
Hi,
I am trying to write a shell script that will take the log files from a single folder (all ending with .log), put them into an archive, use something to encrypt the file, and then emailx to email the resulting encrypted archive to me.
Of course, I am open to suggestions on how to improve... (1 Reply)
I have to check a directory on Linux (via shell Script which I am trying to build) for about 20 different source files with file patterns and if the files are made available in the directory, I should place flag files for which my other ETL jobs are waiting on to kick off. If the source files are... (6 Replies)
Hi All,
Daily I am getting the updated file.
I have to search for this file in all directories and sub directories.
If the file existed in a particular directory then move this updated file to that particular directory.
If the file is not existed in any of the directories then place this... (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies
LEARN ABOUT DEBIAN
murmur
MURMUR(1) Museek Daemon Plus MURMUR(1)NAME
Murmur - PyGTK2 client for museek
SYNOPSIS
murmur [-c --config <filename>] [-l --log <directory>] [-v] [--version] [-d] [-h] [--help]
DESCRIPTION
Murmur provides a GTK2 interface for the Museek Daemon for chatting, transferring files, managing users, viewing user info and browsing
shares on the Soulseek P2P network and Soulfind Servers.
You will need a configured and running museekd(1).
OPTIONS
Murmur accepts the following options:
-c <filename>, --config <filename>
Use a different config file.
-l <directory>, --log <directory>
Use a different chat log directory.
-v, --version
Display Version and exit.
-d Display debug messages while running.
-h, --help
Display Help and exit.
EXAMPLE
To run this program the standard way type:
murmur
Alternativly you use a different config file with:
murmur --config config
Or a different chat logging directory with:
murmur --log logdir
FILES
~/.murmur/config
The default location for the mucous config file.
~/.murmur/logs/
The default directory for chat logs.
~/.murmur/logs/room/
The directory where chat room logs are stored.
~/.murmur/logs/private/
The directory where private chat logs are stored.
~/.murmur/$USER.$EXT
The file where a user's userinfo image is saved.
AUTHORS
daelstorm <daelstorm@gmail.com>
SEE ALSO mulog(1)muscan(1)muscand(1)museekcontrol(1)museekd(1)museeq(1)musetup(1)musetup-gtk(1)daelstorm Release 0.3.1 MURMUR(1)