Sponsored Content
Full Discussion: Help with Copy Shell Script
Top Forums UNIX for Dummies Questions & Answers Help with Copy Shell Script Post 302699629 by pamu on Wednesday 12th of September 2012 05:29:33 AM
Old 09-12-2012
Corrected..

Not used cp for a file to fileSmilie

Thanks elixir...Smilie

Last edited by pamu; 09-12-2012 at 07:09 AM.. Reason: correction..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Urgent !!! Shell script to copy files to VSS

Hi all !!! I need this sample script urgently. Please help. Suppose I do an "ls -ltr" in a directory and store the output in a text file (say "a.txt"). What I need to do is to write a shell script which reads file-names from "a.txt" and copies only those files to VSS. Let's say the destination... (1 Reply)
Discussion started by: devalin
1 Replies

2. Shell Programming and Scripting

How to copy and paste line in shell script

Hi I want to grep for a line and copy and paste that line. for Example ---- file abc.txt ---- host=atlx1 sid=atld1 mail=abc@abc.com host=atlx2 sid=atld2 mail=xyz@abc.com host=atlx3 sid=atld3 mail=def@abc.com host=atlx4 sid=atld4 mail=mno@abc.com --- end of file abc.txt ---- Now I... (16 Replies)
Discussion started by: upsrk
16 Replies

3. Shell Programming and Scripting

suggestion on shell script on copy with xargs

Hi, i am trying to copy files except the latest, my script goes here #! /bin/bash # to copy control files to a local DR server # copy latest files of archive #modified on 26-03-2009 # --get today date dt=` date +"%Y_%m_%d"` --get yesterdays date adt=`(date --date='1 day ago'... (1 Reply)
Discussion started by: saha
1 Replies

4. Shell Programming and Scripting

Help with a shell script to modify one line and copy the next 9 to same file

Hi everyone, the problem is quite simple, yet I can't find an easy solution using awk. I need to search for a string in $3, then if I find this string, copy the line,modify $3, and copy the next 9 lines to the same file. My problem is in the copying of the lines... Finding and modifying... (5 Replies)
Discussion started by: Teroc
5 Replies

5. Shell Programming and Scripting

Shell Script - Copy File at intervals

Hi, I want to copy some files from a Folder say, /usr/X at random intervals to another location. Basically, new files will be dumped at random intervals to location /usr/X and I have to copy those new files to some other location (after copying, I cannot delete those files from source... (2 Replies)
Discussion started by: angshuman_ag
2 Replies

6. Shell Programming and Scripting

shell script to search and copy files

Hello Im new to this forums, I would like some help regarding a script that I need in order to copy some files. Heres the scenario: I need to search several files which have a particular code inside, lets say "test" all of them on different directories. I need to copy all of them on a new... (4 Replies)
Discussion started by: c.watson
4 Replies

7. Shell Programming and Scripting

Shell Script, Copy process using find.

Ok, so here is what I am looking for.. Shell script that uses find to look for one days worth of data using the modified date and then copies only those files to a specified directory. I figured I could use grep and the find command to do this. It seems to work just fine from what I can... (4 Replies)
Discussion started by: techjunky
4 Replies

8. Shell Programming and Scripting

Shell script to copy file

Dear all, I have a database with thousands of files with the structure of name is: Filename_hour_year.abc Filename_hour_year_1.abc .............. So what I need is how to write a script that all file with contain the character "_1" will copy to "_2" For example: file name:... (7 Replies)
Discussion started by: hainguyen1402
7 Replies

9. Shell Programming and Scripting

shell script to check permission before copy over

Hi, I am writing some shell script to check the file owner permission whether the write bit is turn on. If it is turn on it will copy the file to the destination else it will just prompt user to change the file and skipping it. However, I am starting getting loss here as I have couple of... (2 Replies)
Discussion started by: wanaka
2 Replies

10. Shell Programming and Scripting

Shell script to copy files from on folder to another

I am trying to copy files with specific date and name to another folder. I am very new to shell scripting so i am finding it hard to do that. see the sample code i have written below. srcdir="/media/ubuntu/CA52057F5205720D/Users/st4r8_000/Desktop/office work/26 nov"... (13 Replies)
Discussion started by: Aqeel Abbas
13 Replies
SNMP-MPD-MIB(7) 							MIB							   SNMP-MPD-MIB(7)

   SNMP-MPD-MIB DEFINITIONS ::= BEGIN

   IMPORTS
       MODULE-COMPLIANCE, OBJECT-GROUP	       FROM SNMPv2-CONF
       MODULE-IDENTITY, OBJECT-TYPE,
       snmpModules, Counter32		       FROM SNMPv2-SMI;

   snmpMPDMIB MODULE-IDENTITY
       LAST-UPDATED "9901190000Z"	       -- 19 January 1999
       ORGANIZATION "SNMPv3 Working Group"
       CONTACT-INFO "WG-EMail:	 snmpv3@tis.com
		     Subscribe:  majordomo@tis.com
				 In message body:  subscribe snmpv3

		     Chair:	 Russ Mundy
				 TIS Labs at Network Associates
		     postal:	 3060 Washington Road
				 Glenwood, MD 21738
				 USA
		     EMail:	 mundy@tis.com
		     phone:	 +1 301-854-6889

		     Co-editor:  Jeffrey Case
				 SNMP Research, Inc.
		     postal:	 3001 Kimberlin Heights Road
				 Knoxville, TN 37920-9716
				 USA
		     EMail:	 case@snmp.com
		     phone:	 +1 423-573-1434

		     Co-editor	 Dave Harrington
				 Cabletron Systems, Inc.
		     postal:	 Post Office Box 5005
				 MailStop: Durham
				 35 Industrial Way
				 Rochester, NH 03867-5005
				 USA
		     EMail:	 dbh@ctron.com
		     phone:	 +1 603-337-7357

		     Co-editor:  Randy Presuhn
				 BMC Software, Inc.
		     postal:	 965 Stewart Drive
				 Sunnyvale, CA 94086
				 USA
		     EMail:	 randy_presuhn@bmc.com
		     phone:	 +1 408-616-3100

		     Co-editor:  Bert Wijnen
				 IBM T. J. Watson Research
		     postal:	 Schagen 33
				 3461 GL Linschoten
				 Netherlands
		     EMail:	 wijnen@vnet.ibm.com
		     phone:	 +31 348-432-794

		    "
       DESCRIPTION  "The MIB for Message Processing and Dispatching"
       REVISION     "9901190000Z"	       -- 19 January 1999
       DESCRIPTION  "Corrected co-editors' address information."
       REVISION     "9709300000Z"	       -- 30 September 1997
       DESCRIPTION  "Original version, published as RFC 2272."
       ::= { snmpModules 11 }

   -- Administrative assignments ***************************************

   snmpMPDAdmin 	  OBJECT IDENTIFIER ::= { snmpMPDMIB 1 }
   snmpMPDMIBObjects	  OBJECT IDENTIFIER ::= { snmpMPDMIB 2 }
   snmpMPDMIBConformance  OBJECT IDENTIFIER ::= { snmpMPDMIB 3 }

   -- Statistics for SNMP Messages *************************************

   snmpMPDStats 	  OBJECT IDENTIFIER ::= { snmpMPDMIBObjects 1 }

   snmpUnknownSecurityModels OBJECT-TYPE
       SYNTAX	    Counter32
       MAX-ACCESS   read-only
       STATUS	    current
       DESCRIPTION "The total number of packets received by the SNMP
		    engine which were dropped because they referenced a
		    securityModel that was not known to or supported by
		    the SNMP engine.
		   "
       ::= { snmpMPDStats 1 }

   snmpInvalidMsgs OBJECT-TYPE
       SYNTAX	    Counter32
       MAX-ACCESS   read-only
       STATUS	    current
       DESCRIPTION "The total number of packets received by the SNMP
		    engine which were dropped because there were invalid
		    or inconsistent components in the SNMP message.
		   "
       ::= { snmpMPDStats 2 }

   snmpUnknownPDUHandlers OBJECT-TYPE
       SYNTAX	    Counter32
       MAX-ACCESS   read-only
       STATUS	    current
       DESCRIPTION "The total number of packets received by the SNMP
		    engine which were dropped because the PDU contained
		    in the packet could not be passed to an application
		    responsible for handling the pduType, e.g. no SNMP
		    application had registered for the proper
		    combination of the contextEngineID and the pduType.
		   "
       ::= { snmpMPDStats 3 }

   -- Conformance information ******************************************

   snmpMPDMIBCompliances OBJECT IDENTIFIER ::= {snmpMPDMIBConformance 1}
   snmpMPDMIBGroups	 OBJECT IDENTIFIER ::= {snmpMPDMIBConformance 2}

   -- Compliance statements

   snmpMPDCompliance MODULE-COMPLIANCE
       STATUS	    current
       DESCRIPTION "The compliance statement for SNMP entities which
		    implement the SNMP-MPD-MIB.
		   "

       MODULE	 -- this module
	   MANDATORY-GROUPS { snmpMPDGroup }

       ::= { snmpMPDMIBCompliances 1 }

   snmpMPDGroup OBJECT-GROUP
       OBJECTS {
		 snmpUnknownSecurityModels,
		 snmpInvalidMsgs,
		 snmpUnknownPDUHandlers
	       }
       STATUS	    current
       DESCRIPTION "A collection of objects providing for remote
		    monitoring of the SNMP Message Processing and
		    Dispatching process.
		   "
       ::= { snmpMPDMIBGroups 1 }

   END

Erlang/OTP							       SNMP							   SNMP-MPD-MIB(7)
All times are GMT -4. The time now is 12:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy