Line 6:
Did you intend to use the date command? I'd imagine it should still work even if you left it out, but I don't see anything else wrong or odd there.
Hi,
i have a script which need to do behave differently when run as a startup process from init.d/ rc2.d script and when run manually from shell.
How do i distinguish whether my script is run by init process or by shell??
Will the command
/proc/$$/psinfo | grep "myscript" work well???... (2 Replies)
Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Hi all,
I am having a script ScriptA which is calling a script ScriptB in the same server and copying files to second server and have to execute one script ScriptC in the second server. THis First script ScriptA is the main script and i have to execute this process continously.
for Keeping... (2 Replies)
Hi,
I have a script, running on some outside firwall server and it's log of success or failure is maintained in a file.
I want to write a script which ftp that server and reads that file and checks the logs and if failure , I will send mail notification.
Please let meknow if I am not... (1 Reply)
Hi All,
I have a script(sample.sh) displaying the output of "dd" command. Now i am using this script in system() call as,
system("sh sample.sh") in an application file.
I want the output of system("sh sample.sh") in the application file itself.
How can i get it?
Many thnaks.... (9 Replies)
Hi all,
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion.
My problem is sometimes the program takes... (5 Replies)
hi guys
we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
I am using blow script :--
#!/bin/bash
FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not
if
then
# echo "process found"
exit 0;
else
echo "process not found"
exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Hi,
I have a script which does couple of database connection and run some SELECT queries to get some output in the file.
I am surprised to see :eek: that when i run my script some times it gives the desired out put and sometimes it shows some error :confused: .
Suppose if i execute it say... (3 Replies)
Discussion started by: Sharma331
3 Replies
LEARN ABOUT DEBIAN
bins_edit
BINS(1) General Commands Manual BINS(1)NAME
bins_edit -- Set fields in XML picture description files for BINS
SYNOPSIS
bins_edit [-a | --album ] [-m | --html ] [-t title | --title title ] [-e event | --event event ] [-l location | --location loca-
tion ] [-p people | --people people ] [-y date | --date date ] [-d description | --description description ] [--longdesc longDe-
scription] [--shortdesc shortDescription] [--sample pictureFileName] [-g tag=value | --generic tag=value ] [-h | --help ] [-v |
--verbose ] [-q | --quiet ] [file] [files ...]
DESCRIPTION
This manual page documents briefly the bins_edit command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation in HTML in /usr/share/doc/bins/index.html as well as a --help option.
bins_edit sets values in the XML picture description files that bins(1) uses to generate galleries.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
file By default, file is the filename of the XML file with the image properties. If the argument has no .xml suffix, it is added, so
you can directly give picture names on the command line. Spaces and other special characters (even newlines) can be used in val-
ues given as parameters as long as they are enclosed between quotes.
If the --album option is given, the filename refers to the directory of images, and the album.xml in that directory will be modi-
fied instead.
-a
--album edit album description (instead of the default of editing the image description.) In this case, the file parameter must be the
source directory of the album. Only the --title, --longdesc, --shortdesc and --sample switches make sense
with this option.
-m
--html input value will be interpreted as HTML code, thus, no HTML encoding or quoting will be done.
-t title
--title title
Set the title (of an image.)
-e event
--event event
Set the event name (of an album or image.)
-l location
--location location
Set the location (of an image.)
-p people
--people people
Set the list of people (of an image.)
-y date
--date date
Set the date (of an image.)
-d description
--description description
Set the description (of an image.)
--longdesc longDescription
Set the long description (of an album.)
--shortdesc shortDescription
Set the short description (of an album.)
--sample pictureFileName
Select the sample picture, within this album, to be used on the album list (template subalbum.html.) Note that the filename is
relative to the album directory, and thus doesn't have a directory component.
-g tag=value
--generic tag=value
This lets you set arbitrary fields in the relevant XML file (of the image or the album.) Generic tags appear inside description
which appears inside image; the tag appears as the name attribute of a field element, and the value appears as the content
of the element.
-h
--help Gives quick help (which this man page is based on.)
-v
--verbose This switch can appear several times to increase verbosity level.
-q
--quiet Suppress output.
EXAMPLES
Set the title of the Image.jpg file to "My picture":
bins_edit -t "My picture" Image.jpg
Set the title and location of all JPEG pictures in the directory:
bins_edit --title Holiday --location Paris *.jpg
Use of HTML values:
bins_edit --html --description '<b>BINS</b> is cool' file.jpg
Set the title short description and sample image of the album in the current directory (note the dot as final parameter):
bins_edit -a -t "My Album" --sample image.jpg --shortdesc "This is my album" .
SEE ALSO
bins (1).
AUTHOR
This manual page was written by Mark W. Eichin eichin@thok.org for the Debian system (but may be used by others). As it is mostly derived
from the bins_edit program itself, it is covered by the GNU General Public License.
BINS(1)