06-06-2004
The working directory of programs launched by the Finder is always "/".
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
UNIX Shell Script
I'm in /home/suneel dirctory
in that directory need to check for a path for example com/src/resources
If Path exists need to copy the files from one directory
If path not exist need to create the folders and copy the files
UNIX shell script help required (3 Replies)
Discussion started by: suneelc
3 Replies
2. UNIX for Dummies Questions & Answers
hi,
I am using solaris10. I have to write a bourne shell script, which copies files for the said destination path which is passed as an argument to the script.
it looks like this
myscript.sh /var/test -->destination path
now i would like to know what is the maximum length i can... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies
3. Shell Programming and Scripting
hi i wrote following script,
#!/usr/bin/sh
for index in `ls /tmp/common/*.txt`
do
echo "$index"
done
here index is giving full path but in my program i want only file names (not along with whole path)
Eg. if in /tmp/common files are a.txt and b.txt den out should be a.txt b.txt
... (6 Replies)
Discussion started by: crackthehit007
6 Replies
4. Shell Programming and Scripting
Hi,
Can anyone help me on how to set PATH using shell scripting..
Please find the shell script code here....
#!/bin/bash
PATH = $PATH:/opt/app/oracle/product/10.2.0/bin
export PATH
echo $PATH
exit
When i execute this script i get the following error
./backup.sh: line 2: PATH:... (0 Replies)
Discussion started by: srinivasj
0 Replies
5. Shell Programming and Scripting
Hi ,
i need a shell script to poll a particular file in a predefined directory , once that file is found , i need to launch another shell script .
Eg i need to poll for A.txt in /home/username/Desktop
once A.txt is created by Desktop(Created by another Script) , i need to launch another... (2 Replies)
Discussion started by: Vinod H C
2 Replies
6. Shell Programming and Scripting
Hello forum members,
I have to create a out file in the current path./aaa/bbb/ccc/hhh.
i am writing script below.
###script Begins#####
#!/bin/ksh
echo "Weclome"
if
then
echo "Hello"
rm -rf $aaa/bbb/ccc/hhh #clean the exsisting o/p file
echo "no... (2 Replies)
Discussion started by: rajkumar_g
2 Replies
7. Shell Programming and Scripting
Hello to all in forum
I hope you can help me.
I want to send via FTP to a linux server the 2 kind of files that are in the same folder, as follow:
1- Send all files that are named verified.SomeString.zz.pttp to path /var/verified
2- Send all files where the name begins with verified.conf... (3 Replies)
Discussion started by: Ophiuchus
3 Replies
8. Shell Programming and Scripting
I'm trying to set the path permanently through a shell script. (/opt/quest/bin:/usr/bin/lab to /.profile.) I tired using echo option like below but it doesn't work. Please suggest me the right way to do so.
echo "PATH=$PATH:/opt/quest/bin:/usr/bin/lab" >> /.profile (6 Replies)
Discussion started by: pjeedu2247
6 Replies
9. UNIX for Dummies Questions & Answers
I've created a test script, which is located in $HOME/bin. The script runs as expected with no issues. However, upon echo'ing the $path variable the location of my script is not located in any of the directories listed in $path. So my question is, how does shell know where the script is located... (2 Replies)
Discussion started by: BrandonD
2 Replies
10. UNIX for Beginners Questions & Answers
Hi ALL,
I am trying to find the installed tomcat version and location of the server.xml file to get the tomcat port number.
Using below script to do that.
#!/usr/bin/env bash
var1=$(find / -name "version.sh" ! -size 0 2>&1 |egrep -v "tmp|docker")
for loc1 in $var1
do
... (1 Reply)
Discussion started by: sravani25
1 Replies
LEARN ABOUT DEBIAN
xorp_rtrmgr
xorp(8) System Manager's Manual xorp(8)
NAME
xorp_rtrmgr -- XORP Router Manager
SYNOPSIS
xorp_rtrmgr [-a allowed host] [-l file] [-L syslog facility] [-n allowed net] [-b|-c file] [-i interface] [-p port] [-P pidfile]
[-q seconds] [-t directory] [-x directory] [-C directory] [-m directory] [-N] [-h] [-v] [-d] [-r]
DESCRIPTION
This manual page documents briefly the xorp_rtrmgr command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
xorp_rtrmgr is the program that that manages the whole eXtensible Open Router Platform (XORP) platform. The program loads its configuration
file (commonly named config.boot) which will read from the current working directory You can specify a different filename for the configu-
ration file using the -b command line flag. The -N "no execute" flag will cause xorp_rtrmgr to startup and pretend the router is oper-
ating normally, but to not actually start any processes. This can be used to check configuration files.
Typically xorp_rtrmgr must be run as root. This is because it starts up processes that need privileged access to insert routes into the
forwarding path in the kernel.
To interact with the router via the command line interface, the operator should use the XORP command shell xorpsh.
OPTIONS
xorp_rtrmgr allows the following options:
-a allowed host
Host allowed by the finder.
-b, -c file
Boot configuration file to load.
-C directory
Specify operational commands directory.
-d Run in daemon mode in background.
-h Show summary of options.
-i interface
Set or add an interface run Finder on.
-l file Log all the program information and errors to a file.
-L facility.priority
Log all the program output to a given syslog facility.
-m directory
Specify protocol modules directory.
-n allowed net
Subnet allowed by the finder.
-N Load the configuration but do not execute XRLs and do not start processes.
-p port Set port to run Finder on.
-P file Write the process ID to a given file.
-q seconds
Set forced quit period.
-r Restart failed processes (not implemented yet).
-t directory
Specify templates directory.
-v Print verbose information.
-x directory
Specify Xrl targets directory.
SEE ALSO
xorpsh (1)
The programs are documented fully in the Xorp User Manual available at /usr/share/doc/xorp-doc/ in Debian systems when the xorp-doc package
is installed.
AUTHOR
XORP is Copyright (c) 2001-2009 XORP, Inc.
This manual page was written by Javier Fernandez-Sanguino jfs@debian.org for the Debian system (but may be used by others). For licensing
details please see /usr/share/doc/xorp/copyright.
xorp(8)