Sponsored Content
Full Discussion: Urgent !!
Top Forums Shell Programming and Scripting Urgent !! Post 302858031 by manpav on Saturday 28th of September 2013 05:01:21 AM
Old 09-28-2013
Urgent !!

Hello All,
I want to use scp for copying multiple files ( files locations are stored in an array ) from remote server from different locations without prompting password every time . I will supply password once and it should be able to copy every file mentioned in an array.
eg :-

array have entries :- /tmp/manpav/a.txt , /app/test/b.txt , /backup /test/c.txt

copying two/more files ( e.g /tmp/manpav/a.txt , /app/test/b.txt,, /backup /test/c.txt ) from different location from remote to loca)

Last edited by manpav; 09-28-2013 at 06:07 AM.. Reason: more information provided
 

9 More Discussions You Might Find Interesting

1. Solaris

Need Help Urgent

Hi. My E250 server (Solaris 8) running oracle database gets hangup in between. I checked the logs in /var/adm/messages but could not find anything related to this. can anyone help me out? bala (3 Replies)
Discussion started by: balaji_prk
3 Replies

2. UNIX for Advanced & Expert Users

URGENT,URGENT- Need help tape drive installation

Hi, I am trying to attach tape drive to sun V890 running Solaris 9 on it. I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3. 1.How can I make... (3 Replies)
Discussion started by: sriny
3 Replies

3. Shell Programming and Scripting

Urgent

i have a serious simple problem.please help me out of the situation. i hav a file which contains---- 01473341234, 01473312121, 13131231233, 31233444555, ------------------------ data like that.i want to delete last line comma(,) only.what will be tha command. (4 Replies)
Discussion started by: arghya_owen
4 Replies

4. UNIX for Advanced & Expert Users

need help urgent...........

Hi friends.. I am using the below command to search few files from many folders which is under one folder.. i mean let say the path is A/B/C...and inside C...i have 1-10 folder... the below command is working fine.... for i in 1 3 5 7; do find /A/B/C/${i} -name "*.txt" -o -name "*.csv"... (3 Replies)
Discussion started by: sapan123
3 Replies

5. Red Hat

urgent

abb 117.96.113.21 cgg 101.2.104.42 cgg 110.227.247.236 desk 203.20.35.28 png 1.39.242.241 png 1.39.242.241 rzx 101.2.104.42 rzx 115.246.160.36 abb 49.138.242.187 how to find the count of this file wtrto ip thnx in advance (4 Replies)
Discussion started by: himanshu1.singh
4 Replies

6. Shell Programming and Scripting

Urgent!!

Hi I have a file containing DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 216 BP; 37 A; 58 C; 69 G; 52 T; 0 other; DE 3'UTR in Homo sapiens alpha-1-B glycoprotein (A1BG), mRNA. SQ Sequence 1844 BP; 358 A; 483 C; 434 G; 569 T; 0 other; DE 3'UTR in Homo... (1 Reply)
Discussion started by: jyotirmoy21
1 Replies

7. Shell Programming and Scripting

Need Urgent help

Hi friends, I need urgent help here: Issue: I need to create shell script that will find the files & throw an error through job (autosys) when file not found. Daily we use to receive 3 files from a system. Obstacles: 1) All 3 files names are same. 2) Timestamp is same. 3)... (1 Reply)
Discussion started by: tush
1 Replies

8. Shell Programming and Scripting

Need urgent help

Hi geeks, I'm trying to write a below script, but it throws an error, please check and correct me. #!/bin/bash #The below script will extract the string error1 error2 and error3 and also it will count and list the occurrence count1='grep -i "error1" test.txt | wc -l' count2='grep -i "error2"... (4 Replies)
Discussion started by: naren nandale
4 Replies

9. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
shatag(1)							      Shatag								 shatag(1)

NAME
shatag - tag files with their SHA-256 checksums SYNOPSIS
shatag [-fhlLqrtuv0] [-d DATABASE] [-n NAME] [-R NAME]... [FILES]... DESCRIPTION
shatag is a tool for computing and caching SHA-256 file checksums, and efficiently search for identical file across systems. Checksums are stored using the POSIX Extended Attributes filesystem facility, and are preserved when files are moved or renamed. Checksums can be fetched from a remote host and stored in an sqlite database for fast lookups. OPTIONS
When invoked with no options, shatag just displays the cached, valid checksums. If no files are specified, it applies to all non-hidden files in the current directory. The output format is identical to the one of the sha256sum command. -0, --null Instead of outputting one record per line (like sha256sum does,) separate records with null characters. -d DATABASE, --database DATABASE Set the path of the SQLite database to query when using -l , -L or -p (The default path is $HOME/.shatagdb, overridable from the config file) Instead of a file name, a PostgreSQL database can be specified with a prefix of "pg:" followed by a psycopg2 DSN string, like: "pg:dbname=shatag user=myuser password=mypassword host=192.168.1.3" -f, --force When running with -t or -u , recompute the checksum even if the file modification time has not changed. If the old checksum differs, report the file as corrupted. -h, --help Displays the help message -l, --lookup Instead of displaying the checksums, look them up against the local database and indicate if the file exists. A yellow - mark indi- cates that the file does not exist somewhere else, a green = that the file exists at one or several remote locations, a red + that the file has a duplicate on the local system, and a magenta * that the file is empty. -L, --lookup-verbose Instead of displaying the checksums, look them up against the local database. Print all the known remote locations for identical files. -n NAME, --name NAME Name of local storage (defaults to canonical local host name). This needs to be correct if the local database contains entries for this own host. -p, --put Record found tags in the database, for duplicate detection. -q, --quiet Do not display the valid checksums when they are found. -r, --recursive Recurse trough subdirectories -R NAME, --remote NAME When using -l or -L , This is used to restrict the set of remote names to consider. If present, other storages will be ignored. -t, --tag Compute new checksums for files that don't have one, or when it is outdated. -u, --update Recompute the outdated checksums only. Be aware that this can behave counter-intuitively; outdated checksums will only exists for files that have been appended to or partially modified. Many programs dealing with small files (some well-known text editors, no- tably) will overwrite the whole file when saving, and the new file will be lacking a checksum entirely. For these cases, use -t in- stead. -v, --verbose Report encoutered files that have an outated or missing checksum. EXAMPLES
Retag a whole directory and record everything to the database: shatag -pqrt . Check files in the current directory for remote duplicates: shatag -l Show alternate locations for duplicates of a single file: shatag -L somefile FILES
~/.shatagrc YAML configuration file. Currently has only two possible configuration keys: "database", which sets the database path (by default, ~/.shatagdb) and "name" for the volume name in the database (default to canonical host name.) Examples: database: /var/lib/shatag.db # sqlite3 backend database: "pg: dbname=shatag host=localhost user=shatag password=xxxsecretpass- wordxxx" # postgres backend database: http://service.com/shatag # http backend database: insecure-https://service.com/shatag # http backend, skip ssl certificate verification BUGS
Support for non-ASCII filenames across systems of different and/or inconsistent encodings have not been fully tested. Not all option combinations are sensible. REPORTING BUGS
Report shatag bugs to the bugtracker at http://bitbucket.org/maugier/shatag, SEE ALSO
shatag-add(1), shatag-mkdb(1) Shatag 0.1 26.08.2010 shatag(1)
All times are GMT -4. The time now is 07:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy