Sponsored Content
Top Forums Shell Programming and Scripting cd command doesn't work through variables Post 302312573 by devtakh on Saturday 2nd of May 2009 01:34:54 AM
Old 05-02-2009
Quote:
Originally Posted by vipinchauhan222
even though the shell evaluate the value of variable correctly still cd doesnt work ,gives error because of the space between two words
What is the actual directory path? Can you do a direct CD to the PATH?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

command line work script doesn't

Hello, I'm stuck and confused as to why when I execute things form the command line it works but when in a script it doesn't. My script: ### creating a lock on the console touch /var/run/console.lock chmod 600 /var/run/console.lock echo "$User" >>... (2 Replies)
Discussion started by: larry
2 Replies

2. Shell Programming and Scripting

Command doesn't work under cron ?

I have defined in cron crontab -l >/FIXENGINE/data/crontab.$(whoami).$(date +%a) The resulting file is named crontab.fixadmin. When I run the above from a command line, the file is named: crontab.fixadmin.Tue (or whatever day I happen to be running) The question is - why do I get... (4 Replies)
Discussion started by: bigjohn-nj
4 Replies

3. Shell Programming and Scripting

Perl variables inside Net::Telnet::Cisco Module doesn't work

I am writing perl script to configure Cisco device but Variables inside Net::Telnet::Cisco Module doesn't work and passed to device without resolving. Please advise. here is a sample of script: use Net::Telnet::Cisco; $device = "10.14.199.1"; ($o1, $o2, $o3, $o4) = split(/\./,$device);... (5 Replies)
Discussion started by: ahmed_zaher
5 Replies

4. UNIX for Dummies Questions & Answers

find command in shell script doesn't work

Hello all, Something strange going on with a shell script I'm writing. It's trying to write a list of files that it finds in a given directory to another file. But I also have a skip list so matching files that are in that skip list should be, well uhm, skipped :) Here's the code of my... (2 Replies)
Discussion started by: StijnV
2 Replies

5. Shell Programming and Scripting

sed command works on Fedora/Ubuntu, but doesn't work in Mac

Hi, I have a question. I define a function using sed command: replace() { searchterm=$1 replaceterm=$2 sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp' mv $WORK'tempfile.tmp' $3 } Then I call replace 'test = 0' 'test = 1' $myfileThis code works well in... (1 Reply)
Discussion started by: Dark2Bright
1 Replies

6. Shell Programming and Scripting

sed command works on Fedora/Ubuntu, but doesn't work in Mac

Hi, I have a question. I define a function using sed command: replace() { searchterm=$1 replaceterm=$2 sed -e "s/$searchterm/$replaceterm/ig" $3 > $WORK'tempfile.tmp' mv $WORK'tempfile.tmp' $3 } Then I call replace 'test = 0' 'test = 1' $myfile This code... (1 Reply)
Discussion started by: Dark2Bright
1 Replies

7. Solaris

Mount command doesn't work on Solaris System

Hi All, I am using a solaris Sun-Fire-V440 server. The OS is solaris. My problem is whenever I run the command mount | grep "^/ " | sed -e 's,^.*dsk/\(*\).*$,\1,' it should return a disk value as "d30" as it does on each of my other servers.But on this server I am not getting any o/p from... (3 Replies)
Discussion started by: vivek.goel.piet
3 Replies

8. Shell Programming and Scripting

Ssh remote command doesn't work from script file

I have 10 application servers in a distributed architecture generating their own application logs. Each server has application utility to continuously tail the log. for example following command follows tails and follows new logfiles as they are generated server1$ logutility logtype When I run... (8 Replies)
Discussion started by: indianya
8 Replies

9. UNIX for Dummies Questions & Answers

7z command for files larger than 4GB ( unzip doesn't work)

My unzip command doesn't work for files that are greater than 4GB. Consider my file name is unzip -p -a filename.zip, the command doesn't work since the size of the file is larger. I need to know the corresponding 7z command for the same. This is my Unix shell script program: if then ... (14 Replies)
Discussion started by: chandraprakash
14 Replies

10. Shell Programming and Scripting

[Bash] passing variables to executable doesn't work

Bash version 4.4.20 / Ubuntu 16.0.4 Hello, I tried to write a script that gathers some data and passes them to an executable. The executed application answers with an error. The echo output in the script returns correct values. If I copy/paste the last echo command, it get's executed... (2 Replies)
Discussion started by: sushi2k7
2 Replies
BACKUP_ADDVOLSET(8)					       AFS Command Reference					       BACKUP_ADDVOLSET(8)

NAME
       backup_addvolset - Creates a new (empty) volume set

SYNOPSIS
       backup addvolset -name <volume set name> [-temporary]
	   [-localauth] [-cell <cell name>] [-help]

       backup addvols -n <volume set name> [-t] [-l]
	   [-c <cell name>] [-h]

DESCRIPTION
       The backup addvolset command creates a new volume set, by default adding it to the Backup Database. It is best that the volume set's name
       indicate the volume set's contents; for example, define the volume entries in the "user" volume set to match all user volumes. The volume
       set name must be unique within the Backup Database of the local cell.

       After issuing this command, issue the backup addvolentry command to define the volume entries in the volume set.

       Sometimes it is convenient to create volume sets without recording them permanently in the Backup Database, for example when using the
       backup volsetrestore command to restore a group of volumes that were not necessarily backed up together. To create a temporary volume set,
       include the -temporary flag. A temporary volume set exists only during the lifetime of the current interactive session, so the flag is
       effective only when used during an interactive session (opened by issuing the backup interactive command). If it is included when the
       command is issued at the regular command shell prompt, the command appears to succeed, but the volume set is not created. As noted, a
       temporary volume set ceases to exist when the current interactive session ends, or use the backup delvolset command to delete it before
       that.

       One advantage of temporary volume sets is that the backup addvolset command, and any backup addvolentry commands subsequently used to add
       volume entries to it, complete more quickly than for regular volume sets, because no records are created in the Backup Database.

OPTIONS
       -name <volume set name>
	   Names the new volume set. The name can include up to 31 of any character other than the period. Avoid other metacharacters as well.

       -temporary
	   Creates a volume set that exists only within the context of the current interactive session. It is not added to the Backup Database.

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following command creates a volume set called "sys":

	  % backup addvolset sys

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
       onto a server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       backup(8), backup_addvolentry(8), backup_delvolentry(8), backup_delvolset(8), backup_listvolsets(8), backup_volsetrestore(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26						       BACKUP_ADDVOLSET(8)
All times are GMT -4. The time now is 08:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy