12-28-2009
hi,
use : which <your script>
this assumes that PATH has been exported
cheers
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
suppose:
nevermind, i figured it out, haha... (2 Replies)
Discussion started by: cul8erppl
2 Replies
2. Shell Programming and Scripting
Hi Guys.
I am a complete shell scripting newbie with some syntax and commands understanding. I'm more of a win admin. With that said: I need to write a shell script to monitor a directory '/Mon_Dir' for new occurrences of files with .xx extension. Once a new file is detected in the directory, a... (4 Replies)
Discussion started by: krkan
4 Replies
3. Shell Programming and Scripting
I have a shell script /home/user1/bin/sh1, how can I print out the directory of this file inside the script.
Say I am in /home/user1/, then I run
/home/user1/bin/sh1
I need it to print out /home/user1/bin.
Thanks. (2 Replies)
Discussion started by: jasony001
2 Replies
4. Shell Programming and Scripting
Hi all,
I am getting : No such file or directory while executing a shell script. But i have that corresponding file in the corresponding path. It also have executable rights. Please help me out in this
Thanks in advance.
Ananthi.U (7 Replies)
Discussion started by: ananthi_ku
7 Replies
5. UNIX for Advanced & Expert Users
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Discussion started by: rajneesh_kapoor
4 Replies
6. Shell Programming and Scripting
Hi,
This is a quick one.
I have got a review comment in one of the scripts that i wrote:
"In UNIX script it not advisable to use cd to a directory and then run command."
Is this true?
I was trying to cd to log directory and use some cat or head or ls command.
Many Thanks,
Sam (2 Replies)
Discussion started by: samplify
2 Replies
7. Shell Programming and Scripting
Hi,
I have a script get_DB_var.ksh which do a data base call and get some variables as below:
sqlplus -silent $user/$pass@dbname <<END
select col1,
col2,
col3
from table_name where col4=$1;
exit;
END
Now I want to access all these variables i.e.... (9 Replies)
Discussion started by: dips_ag
9 Replies
8. UNIX for Dummies Questions & Answers
Is there a way to run the profile which is not in $HOME directory? then whats the command for that? (1 Reply)
Discussion started by: SKhan
1 Replies
9. UNIX for Dummies Questions & Answers
Hi i wrote a script which dosent exists after executing any help
#!/bin/bash
netstat -ptlen | grep 10000
if ; then
echo "Hive Thrift server is running"
exit 0
else
echo "Hive Thrift server is down Trying to Bring up the service" | mail -s "ALERT" team@domain.com
`nohup hive... (7 Replies)
Discussion started by: vikatakavi
7 Replies
10. Shell Programming and Scripting
I'm finally about to make the jump from PHP's mysql driver to the newer mysqli one using the mysqli converter tool.
The tool is called by this command line:
php /usr/share/nginx/html/rather/converter/cli.php -d -p ".php,.shtml,.inc" -u -b -v -w >> /tmp/convert.log
e.g. at the web root:... (2 Replies)
Discussion started by: dheian
2 Replies
LEARN ABOUT DEBIAN
xnbd-wrapper
XNBD-WRAPPER(8) System Manager's Manual XNBD-WRAPPER(8)
NAME
xnbd-wrapper -- manage multiple files to be exported as a block device to other computers running the GNU/Linux(tm) Operating System
SYNOPSIS
xnbd-wrapper [ --imgfile IMAGE [--imgfile IMAGE ...] ] [--laddr ADDRESS] [--port PORT] [--socket PATH] [--xnbd-binary
PATH] [--daemonize] [--logpath PATH]
DESCRIPTION
xnbd-wrapper is a super-server for xnbd-server. Its purpose is to manage multiple exported images at once. A client may connect to this
super-server and it will be indirected to the actual xnbd-server providing the requested resource.
xnbd-wrapper comes handy if you want to export multiple files (or block devices) on a single host. Instead of starting multiple xnbd-server
instances and remember the exported port for each, you can use xnbd-wrapper to looks up the requested image file name and map it automati-
cally to the corresponding xnbd-server.
OPTIONS
The following options are supported:
--daemonize
Go into background as soon as the xnbd-server is started up
--imgfile IMAGE
Export the image file IMAGE through xnbd-wrapper, with IMAGE being a block device or a file name of an image file.
xnbd-wrapper will export the file name accessible through this name to clients, which may connect to the server by providing this
name
This option can be specified multiple times. In this case, xnbd-wrapper will export all IMAGE files at once. Alternatively this
argument can be omitted and images may be (un-)exported ar runtime with xnbd-wrapper-ctl.
--laddr ADDRESS
The address, where this wrapper shall listen for incoming connections. You can specify any resolvable hostname or IP address,
being in IPv4 or IPv6 notation.
--logpath FILE
Log informational messages to the given FILE if given. Defaults to /var/log/xnbd-wrapper.log
--lport PORT
Accept incoming connections on the given PORT. A valid port is any number between 1 and 65536. You may not use the same listeing
port more than once per system. If this argument is not given, xNBD will listen on port 8520 by default.
--socket PATH
The xNBD wrapper can be controlled through a control socket. When given, use PATH as file name, default is /tmp/xnbd_wrap-
per.ctl).
--xnbd-binary PATH
Specifies the path to the xnbd-server program. The wrapper will spawn server instances on demand. Give PATH as file name,
default is xnbd-server (relative to the directory, where the wrapper is in).
SEE ALSO
xnbd-client (1), xnbd-server (8), xnbd-wrapper-ctl (8).
AUTHOR
The NBD kernel module and the NBD tools have been written by Pavel Macheck (pavel@ucw.cz) and is now maintained by Paul Clements.
(Paul.Clements@steeleye.com).
The xNBD userland (client and server) have been written by Takahiro Hirofuchi (t.hirofuchi@aist.go.jp)
This manual page was written by Arno Toell (debian@toell.net) for the Debian GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2, as published by the
Free Software Foundation.
XNBD-WRAPPER(8)