Always use absolute path if you are trying to run an executable that is not defined in PATH environment variable in BASH. So you should try:-
Or add absolute path of executable isumid to PATH env variable.
I hope this helps.
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Hello
I want to make simple extension to vi , you know how you want to run some shell command
you do ":! ls -l " , then you go out the vi the command executed and then you hit enter and you back to vi
but now I want to be able to go out of vi and run several command outside of vi .. and in... (3 Replies)
Hi friends this is first post i am very new to shell scripting so i require your expertise to do the following thank u
I need to write a shell script which will run the following commands
pg_dump bank > backup(Enter)
Wait for bash prompt to appear coz it indicates that the command is... (23 Replies)
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)
I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file.
Process:
Connecting to remote unix server <host1.ibm.com> through ssh
Login: ... (2 Replies)
The code below works, but takes too many lines and looks awkward:
db2 "export to $filename of del select * from $table with ur"|tee -a $LOGFILE|awk '/Number of rows exported:/ {print $5}' > numrows.tmp
numrows=$(cat numrows.tmp)
rm numrows.tmp
When I try the... (2 Replies)
Hi guys, so, I have a server running an sqlite database which is accessed by many client machines working as hardware testers, whenever something fails and needs to be replaced the operator would have to enter the Serial Number of the part being replaced as well as some other data. and... (0 Replies)
Hi all. On X11 I'm on a shell ...shell_1 (/bin/bash). From here I want to open another shell window shell_2 who executes commands like "ls -l" or programs like ". /program"... so the "result" of commands shows in shell_2 window and not in shell_1. Is that possible ? (4 Replies)
hi,
how to write shell script that runs different commands(like:ls,ps,ls-l) in differnt terminals(each command should run in different terminal).
my main motive is to run different 'c' program exe's available in different locations in different terminals.
thanks
sai (2 Replies)
Hi,
I am trying to make a Shell Script using which I will update around 10K records in MySQL db each night. For that, I am currently doing the following command in FOR LOOP:
mysql -D $MASTER_DB_NAME -h $MASTER_DB_HOST -u $MASTER_DB_USER -p$MASTER_DB_PASSWD -e "$SQL_Query"
This command is... (2 Replies)
Discussion started by: rahulmittal87
2 Replies
LEARN ABOUT DEBIAN
jifty::util
Jifty::Util(3pm) User Contributed Perl Documentation Jifty::Util(3pm)NAME
Jifty::Util - Things that don't fit anywhere else
DESCRIPTION
absolute_path PATH
"absolute_path" converts PATH into an absolute path, relative to the application's root (as determined by "app_root") This can be called
as an object or class method.
canonicalize_path PATH
Takes a "path" style /foo/bar/baz and returns a canonicalized (but not necessarily absolute) version of the path. Always use "/" as the
separator, even on platforms which recognizes both "/" and "" as valid separators in PATH.
jifty_root
Returns the root directory that Jifty has been installed into. Uses %INC to figure out where Jifty.pm is.
share_root
Returns the 'share' directory of the installed Jifty module. This is currently only used to store the common Mason components, CSS, and JS
of Jifty and it's plugins.
app_root
Returns the application's root path. This is done by returning $ENV{'JIFTY_APP_ROOT'} if it exists. If not, Jifty tries searching upward
from the current directory, looking for a directory which contains a "bin/jifty". Failing that, it searches upward from wherever the
executable was found.
It "die"s if it can only find "/usr" or "/usr/local" which fit these criteria.
is_app_root PATH
Returns a boolean indicating whether the path passed in is the same path as the app root. Useful if you're recursing up a directory tree
and want to stop when you've hit the root. It does not attempt to handle symbolic links.
default_app_name
Returns the default name of the application. This is the name of the application's root directory, as defined by "app_root".
make_path PATH
When handed a directory, creates that directory, starting as far up the chain as necessary. (This is what 'mkdir -p' does in your shell).
require PATH
Uses UNIVERSAL::require to require the provided "PATH". Additionally, logs any failures at the "error" log level.
try_to_require Module
This method works just like "require", except that it suppresses the error message in cases where the module isn't found.
already_required class
Helper function to test whether a given class has already been loaded.
generate_uuid
Generate a new UUID using Data::UUID.
reference_to_data Object
Provides a saner output format for models than "MyApp::Model::Foo=HASH(0x1800568)".
stringify LIST
Takes a list of values and forces them into strings. Right now all it does is concatenate them to an empty string, but future versions
might be more magical.
AUTHOR
Various folks at Best Practical Solutions, LLC.
perl v5.14.2 2010-12-08 Jifty::Util(3pm)