07-18-2007
read a path
Hi I'm trying to write a script in which,if i log onto a particular server,the script should automatically find the server i'm on (which is the source server).We can find it frm the path /transfer/common/utilities/env_params.txt
please help me as to how start with this,shall i use the read cmmnd or any ideas...................pls urgent help needed
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi I'm trying to write a script in which,if i log onto a particular server,the script should automatically find the server i'm on (which is the source server).We can find it frm the path /transfer/common/utilities/env_params.txt
please help me as to how start with this,shall i use the read cmmnd... (4 Replies)
Discussion started by: bkan77
4 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement,where i have to read the directory path then read the files present in the directory
Also I need to check the directory path exist in the local drive.
These directory path are mentioned in the Primary.csv file under the column Dir.
Primary.csv
Dir,File1,File2... (1 Reply)
Discussion started by: sollins
1 Replies
3. Shell Programming and Scripting
I have a variable called PATH that contains a path
example: /Users/rtipton/Desktop/testusers/test
I need a sed command to set a variable called USER to the last directory name in that path
PATH="/Users/rtipton/Desktop/testusers/test"
and from that PATH i need USER to = test
I know sed... (4 Replies)
Discussion started by: tret
4 Replies
4. Shell Programming and Scripting
suppose i ahve a shell script Nsdnet.sh inside a directory /dialp/Release/bin
another file nsdnet_file.csv is under the same directory. Now in the shell script i have call a java file, which reads the csvfile from the commandline.
Now when i run the file as
$ ./Nsdnet.sh ./nsdnet_file.csv
then... (5 Replies)
Discussion started by: priyanka3006
5 Replies
5. Shell Programming and Scripting
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies
6. Shell Programming and Scripting
I am trying to script simply data transfer. I would like to have the user input the source "SRC" (/Volumes/DriveName/Users/johnq123) and then name the directory that the copied information will go to, "DST" . put I can't get it to work -
#!/bin/bash
... (8 Replies)
Discussion started by: dropkick888
8 Replies
7. Shell Programming and Scripting
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Discussion started by: karthikgv417
6 Replies
8. UNIX for Advanced & Expert Users
Currently I am using this laborious command
lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}'
Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
10. Programming
i have make file which i try to make them generic
but it keeps to compline it missing include directory
this is the makefile :
CXX=g++
CPPFAGS= -Wall -O0 -g -std=c++14
INCLUDES = -I/home/vagrant/libuv/include -Isrc
LIBS_DIRS = -L/home/vagrant/libuv/build
LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies
LEARN ABOUT DEBIAN
storebackupmount
STOREBACKUPMOUNT(1) User Contributed Perl Documentation STOREBACKUPMOUNT(1)
NAME
storeBackupMount.pl - runs storeBackup backing up to an nfs mount
SYNOPSIS
storeBackupMount.pl -c configFile [-s server] [-l logFile] [-d]
[-p pathToStoreBackup] [-k killTime] [-m] mountPoints...
DESCRIPTION
This script does the following:
- checks an nfs server with ping
- mounts that server via a list of mount points
- starts storeBackup (with a config file)
- umounts that server
OPTIONS
--server, -s
name or ip address of the nfs server
default is localhost
--configFile, -c
configuration file for storeBackup.
if option 'logFile' is set in the configration file,
that log file is read online, if it is different from -l
--logFile, -l
logFile for this process.
default is STDOUT.
you can log into the same logfile as storeBackup
--debug, -d
generate some debug messages
--pathStbu, -p
path to storeBackup.pl
--killTime -k
time until storeBackup.pl will be killed.
default is 365 days.
the time range has to be specified in format 'dhms', e.g.
10d4h means 10 days and 4 hours
--keepExistingMounts, -m
if a mount already exists, do not umount after
running storeBackup
mountPoints
List of mount points needed to perform the backup.
This must be a list of paths which have to be
defined in /etc/fstab.
-
if you add 'ro,' or 'rw,' to the beginning of a mount
point, you can overwrite that option set in /etc/fstab
example:
ro,/filesSystemToRead
will mount /fileSystemToRead read only, even if the
corresponding entry in /etc/fstab mounts it read write
only root is allowed to use this feature!
EXIT STATUS
0 -> everything is ok
1 -> error from storeBackup
2 -> error from storeBackupMount
3 -> error from both programs
COPYRIGHT
Copyright (c) 2004-2008,2012 by Heinz-Josef Claes (see README). Published under the GNU General Public License v3 or any later version
perl v5.14.2 2012-03-03 STOREBACKUPMOUNT(1)