Sponsored Content
Top Forums Shell Programming and Scripting Can anybody change this into Linux shell scripts? Post 302782723 by Corona688 on Tuesday 19th of March 2013 11:22:11 AM
Old 03-19-2013
Ending in what error?
 

10 More Discussions You Might Find Interesting

1. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

2. Shell Programming and Scripting

find all scripts to change DNS name??

hi, we are going for a new unix box and the ip and DNS name has to be changed in all the scripts, where ever it is hard coded. i was trying the below mentioned command to list all such scripts where the ip/dns name is hard coded: find / -type f -print | xargs grep -l "ip address" >>... (0 Replies)
Discussion started by: Bhups
0 Replies

3. Shell Programming and Scripting

How to make the same change in multiple shell scripts?

I would like to make the same change in multiple shell script files and would like to know if anyone can be of some help? I would appreciate it. (4 Replies)
Discussion started by: rdakhan
4 Replies

4. Shell Programming and Scripting

Scripts fails if you change its code during the execution.

So a script is working properly (tested many times) , then you add a new fine piece of code ,finaly its fails generally with a syntax error at the last line of the script. :confused:... does anybody why this happens? >uname -a HP-UX test... (4 Replies)
Discussion started by: Klashxx
4 Replies

5. Shell Programming and Scripting

how to change default shell in linux?

currently the default shell in my linux enviornemnt is ksh. how to change the default shell to bash? thanks! (8 Replies)
Discussion started by: princelinux
8 Replies

6. Shell Programming and Scripting

shell scripts for linux SLES 10

Hi, could someone help me to create the following scripts Need to create couple of shell scripts on LINUX SLES 10 Using my id --------------- First script – this script should contain su and should take input <process name> 1 -login using my id and then sudo to... (1 Reply)
Discussion started by: lookinginfo
1 Replies

7. Shell Programming and Scripting

Shell scripts migration from HP-Unix 11 to Red Hat Linux

We are changing our OS from HP-Unix 11 to Linux Red Hat. We have few k- shell, c - shell and sql scripts which are currently running under HP-Unix 11. Will these scripts work on LINUX as it is? or we need to do any code changes?IS there anyone who have done this kind of migration before?Thanks for... (2 Replies)
Discussion started by: Phoenix2
2 Replies

8. UNIX for Advanced & Expert Users

What files or programs have the ability to change your default network scripts and config

What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own. /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/devices/ifcfg-wlan0... (4 Replies)
Discussion started by: cokedude
4 Replies

9. Shell Programming and Scripting

Shell script to change the password on multiple servers in linux

Can any one please let me know the shell script to change the password for a particular user on multiple linux servers. (2 Replies)
Discussion started by: s_madras
2 Replies

10. Shell Programming and Scripting

Change indentation in scripts

Hi, I am a professional in writing shell scripts, and I am using a one-space indentation like this for i in file1 file2 do if then echo "$i" fi done so very deeply nested stuff still fits on my screen. At release time I usually double the indentation via sed 's/^ */&&/' to make... (8 Replies)
Discussion started by: MadeInGermany
8 Replies
VOS_COPY(1)						       AFS Command Reference						       VOS_COPY(1)

NAME
vos_copy - Make a copy of a volume SYNOPSIS
vos copy [-id] <volume name or ID of source> [-fromserver] <machine name for source> [-frompartition] <partition name for source> [-toname] <volume name for new copy> [-toserver] <machine name for destination> [-topartition] <partition name for destination> [-offline] [-readonly] [-live] [-cell <cell name>] [-noauth] [-localauth] [-verbose] [-encrypt] [-noresolve] [-help] vos cop [-i] <volume name or ID of source> [-froms] <machine name for source> [-fromp] <partition name for source> [-ton] <volume name for new copy> [-tos] <machine name for destination> [-top] <partition name for destination> [-o] [-r] [-li] [-c <cell name>] [-noa] [-lo] [-v] [-e] [-nor] [-h] DESCRIPTION
The vos copy command makes a copy of a volume with a new name. It is equivalent to vos dump followed by vos restore, but doesn't require the volume be stored locally by the client. CAUTIONS
Currently, the maximum size of a volume is 2 terabytes (2^31 bytes). OPTIONS
[-id] <volume name or ID> Specifies either the complete name or volume ID number of a read/write volume. [-fromserver] <machine name for source> Identifies the file server machine where the source volume resides. Provide the machine's IP address or its host name (either fully qualified or using an unambiguous abbreviation). For details, see vos(1). [-frompartition] <partition name for source> Names the partition where the source volume resides. Provide the full partition name (for, example, /vicepa) or one of the abbreviated forms described in vos(1). [-toname] <volume name for new copy> The complete name of the new volume to create. [-toserver] <machine name for destination> Identifies the file server machine to which to copy the volume. Provide the machine's IP address or its host name (either fully qualified or using an unambiguous abbreviation). For details, see vos(1). [-topartition] <partition name for destination> Names the partition to which to copy the volume. Provide the full partition name (for, example, /vicepa) or one of the abbreviated forms described in vos(1). -offline Leaves the new volume flagged as off-line in the volume database. -readonly Flags the new volume as read-only in the volume database. -live Copies the live volume without cloning. This is normally not necessary and causes the volume to be kept locked for longer than the normal copy mechanism. -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 vos(1). -noauth Assigns the unprivileged identity "anonymous" to the issuer. Do not combine this flag with the -localauth flag. For more details, see vos(1). -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The vos command interpreter presents it to the Volume Server and Volume Location Server during mutual authentication. Do not combine this flag with the -cell argument or -noauth flag. For more details, see vos(1). -verbose Produces on the standard output stream a detailed trace of the command's execution. If this argument is omitted, only warnings and error messages appear. -encrypt Encrypts the command so that the operation's results are not transmitted across the network in clear text. This option is available in OpenAFS versions 1.4.11 or later and 1.5.60 or later. -noresolve Shows all servers as IP addresses instead of the DNS name. This is very useful when the server address is registered as 127.0.0.1 or when dealing with multi-homed servers. This option is available in OpenAFS versions 1.4.8 or later and 1.5.35 or later. -help Prints the online help for this command. All other valid options are ignored. OUTPUT
This command has no output unless "-verbose" is specified or there is an error. EXAMPLES
The following example makes a verbose copy of the "test" volume named "test2" in the cell "localcell". The volume and copy both reside on "/vicepa" of "server1". % vos copy test server1 a test2 server1 a -cell localcell -verbose Starting transaction on source volume 536870921 ... done Allocating new volume id for clone of volume 536870921 ... done Allocating new volume id for copy of volume 536870921 ... done Cloning source volume 536870921 ... done Ending the transaction on the source volume 536870921 ... done Starting transaction on the cloned volume 536870926 ... done Setting flags on cloned volume 536870926 ... done Getting status of cloned volume 536870926 ... done Creating the destination volume 536870927 ... done Setting volume flags on destination volume 536870927 ... done Dumping from clone 536870926 on source to volume 536870927 on destination ... done Ending transaction on cloned volume 536870926 ... done Starting transaction on source volume 536870921 ... done Doing the incremental dump from source to destination for volume 536870921 ... done Setting volume flags on destination volume 536870927 ... done Ending transaction on destination volume 536870927 ... done Ending transaction on source volume 536870921 ... done Starting transaction on the cloned volume 536870926 ... done Deleting the cloned volume 536870926 ... done Ending transaction on cloned volume 536870926 ... done Created the VLDB entry for the volume test2 536870927 Volume 536870921 copied from server1 /vicepa to test2 on server1 /vicepa PRIVILEGE REQUIRED
The issuer must be listed in the /etc/openafs/server/UserList file on the machine specified with the -server argument and on each database server machine. If the -localauth flag is included, the issuer must instead be logged on to a server machine as the local superuser "root". SEE ALSO
vos(1), vos_clone(1), vos_move(1) COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com> This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS. OpenAFS 2014-04-08 VOS_COPY(1)
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy