If a script needs to test whether it is running in an interactive shell, it is simply a matter of finding whether the prompt variable, $PS1 is set. (If the user is being prompted for input, then the script needs to display a prompt.)
There are other ideas there in this link: http://www.tldp.org/LDP/abs/html/intandnonint.html
One more is that if in background/foreground there is a tty-variable that is set or not set. You could also do something like put a special variable in "~./.profile" that shows that the user is online, eg: $PS1 above. (Just ideas: got no references or clearer ideas on these last ones!)
Hi Perl/UNIX experts,
I have a problem in running a shell script from my perl script (auto.pl).
I run the perl script using
perl auto.pl
from the shell prompt
The shell script picks the files in "input" folder and procesess it.
The shell script blue.sh has this code.
export... (16 Replies)
I want to run through wine the utorrent and I don't want the messages that are usually displayed in the console,
so I use the following command
wine utorrent.exe > /dev/null &
but it doesn't seem to work. Especially the redirection of the messages to the /dev/null doesn't work at all.
Do... (1 Reply)
i have a small problem getting a batxh shell script to run in shell
this is the code
the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command
this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Hi,
I am using HP-UNIX.
I have a requirement as below
I have to change env twice like:
cadenv <env>
cadenv <env>
ccm start -d /dbpath
ccm tar -xvf *.tar
ccm rcv ....
mv *.tar BACKUP
but after I do the first cadenv <env> , I am unable to execute any of the later commands .
... (6 Replies)
Hi Folks.
My script is not exiting after run though its working correctly please suggest.
#!/bin/ksh
trap '' HUP
. /bin/functions
config_env
PATH=/bin:/usr/bin:/usr/local/bin:$EXEC_PATH:$ORACLE_HOME/bin
MONTH=$(control_register month)
YEAR=$(control_register year)
DATE_NOW="Job... (1 Reply)
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
the following bash script is not working in fedora-11 Could anyone help me please?
#!/bin/bash
if
-ne 0];then
echo " you are in root"
else echo " you must be in root -su mode??"
fi
exit (2 Replies)
Hi All,
I have a script which calls some other scripts.. When i run the parent script all the status messages are displaying on terminal.
I want to know how to suppress dem...
or run a script in silent mode
Thanks,
Firestar (4 Replies)
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT DEBIAN
luckybackup
LUCKYBACKUP(8) System Manager's Manual LUCKYBACKUP(8)NAME
luckybackup - a powerful, fast and reliable backup & sync tool
SYNOPSIS
luckybackup [OPTIONS]... [FILE]...
DESCRIPTION
luckybackup is an application that backs-up and/or synchronizes any directories with the power of rsync
OPTIONS --help
displays this help message
--version
displays the current version of the application
--skip-critical
does not execute tasks that appear with a 'CRITICAL' warning message
--dry-run
executes luckybackup in dry-run (simulation) mode
--silent
executes luckybackup in silent mode (just tray notification icon shown)
-c
console mode. Use this, if there is no graphical envrironment available
--no-questions
skips confirmation questions asked to user. Implies -c (console mode)
[FILE]
is the filename of the already created profile that is going to be executed
examples
1. Execute luckybackup gui :
$ luckybackup
2. Execute luckybackup in silent mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :
$ luckybackup --silent ~/.luckyBackup/profiles/BackupHome.profile
3. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile' :
$ luckybackup -c BackupHome.profile
4. Execute luckybackup in console mode for profile '~/.luckyBackup/profiles/BackupHome.profile'
Do not ask any questions and skip all operations that appear CRITICAL after the checks :
$ luckybackup --skip-critical --no-questions ~/.luckyBackup/profiles/BackupHome.profile
SEE ALSO
For a complete documentation, please have a look at the application manual via the gui main window help menu.
AUTHOR
luckybackup was written by <Loukas Avgeriou>.
This manual page was written by luckyb <luckyb69@sourceforge.net>, for the Debian project (but may be used by others).
2011-01-12 LUCKYBACKUP(8)