Put
into extra file called "header" and supply as first file to the script. It will print it as is giving you control over what shold appear in the first lines of your output.
hello,
i want to make a script to search the file contents in my home directory by a given date and output me the line that has the date... (10 Replies)
Is there any possible way to print the contents of a directory to a .jpg file? I have a list of thumbnails (e-books) which I want to share (+500) but I don't know how to make this.
I would appreciate a lot any comments regarding this issue. (4 Replies)
Hi All,
I need your help in finding pattern from files present in different directories.
I need to search for a pattern "xyz" from "*.txt" files which are present in different levels of directories as shown.
example
-------
dir1/subdir1/file.txt
dir2/subdir2/subsubdir2/file.txt... (5 Replies)
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
Hi All,
Am trying to write wrapper shell/bash script on a utility tool for which i need to pass 2 files as arugment to execute utility tool.
Wraper script am trying is to do with above metion 2 files.
utility tool accepts :
a. userinfo file : which contains username
b. item file : which... (2 Replies)
Hi,
I need help in printing string enclosed with single quotes to a file.
I am trying to write a shell script which when run will create another script below is the script logic.
cat create_script.sh
echo '#!/bin/sh' > append_flname.sh
echo 'for FILE in $*' >> append_flname.sh
echo... (6 Replies)
Hi everyone,
I need to write a script to search a directory, output the name of a file to an ouput file and print the last few lines of the files to the output file such that I would have something like this:
FILE1:
LINE
LINE
LINE
FILE2:
LINE
LINE
LINE
FILE3:
LINE
LINE
LINE... (2 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT DEBIAN
send_gearman
SEND_GEARMAN(8) System Administration Utilities SEND_GEARMAN(8)NAME
send_gearman - Submit active and passive check results to a gearman job server
DESCRIPTION
usage:
send_gearman [ --debug=<lvl> ]
[ --help|-h
]
[ --config=<configfile>
]
[ --server=<server>
]
[ --timeout|-t=<timeout>
]
[ --delimiter|-d=<delimiter>
]
[ --encryption=<yes|no>
]
[ --key=<string>
]
[ --keyfile=<file>
]
[ --host=<hostname>
]
[ --service=<servicename>
]
[ --result_queue=<queue>
]
[ --message|-m=<pluginoutput>
]
[ --returncode|-r=<returncode> ]
for sending active checks:
[ --active
]
[ --starttime=<unixtime>
]
[ --finishtime=<unixtime>
]
[ --latency=<seconds>
]
plugin output is read from stdin unless --message is used. Use this mode when plugin has multiple lines of plugin output.
Note: When using a delimiter (-d) you may also submit one result
for each line. Service Checks: <host_name>[tab]<svc_description>[tab]<return_code>[tab]<plugin_output>[newline]
Host Checks: <host_name>[tab]<return_code>[tab]<plugin_output>[newline]
see README for a detailed explaination of all options.
SEE ALSO
The Mod Gearman documentation is available in /usr/share/doc/mod-gearman/README.html
send_gearman 1.3.6-1 July 2012 SEND_GEARMAN(8)