10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good Afternoon,
I'm backing up a folder from one NAS to another using a unix script using cp. Its a lot of files and takes several days to complete. Most of the files don't change from week to week. Is there a command that would be quicker?
Also note, the backup needs to be ready-to-use in... (5 Replies)
Discussion started by: Stellaman1977
5 Replies
2. UNIX for Beginners Questions & Answers
Ubuntu, Bash 4.3.48
Hi,
I have 2 files and I want to join them (line by line if the start of the lines is the same, like a ID)
INPUT FILE 1 (tab delimited)
aa_12_12_v_c aaa,asf,afgas,eg
bb_12_43_a_d dad,ada,adaf,afa
cc_56_75_d_f asd,thh,ert,rtertet
INPUT FILE 2 (tab delimited)... (4 Replies)
Discussion started by: echo manolis
4 Replies
3. Shell Programming and Scripting
Hello,
I am trying to write a script that will lftp a file. The parameters are being passed in to the script from ETL tool. The put command is not working. put $file_name $tgt_file_name in the function ftpfile(). When I hardcode the file name with path its working. can some one help me... (5 Replies)
Discussion started by: skatpally
5 Replies
4. Shell Programming and Scripting
We have lftp command inside shell file. which is intern calling .cfg file for transferring the file from one server to other.
Below command to not working.
lftp -e "set net:max-retries 1; set net:reconnect-interval-base 1; put -E -O /destinationdir/inbox/ /sourcedir/test.txt; bye" -u... (4 Replies)
Discussion started by: johnsnow
4 Replies
5. Shell Programming and Scripting
Hi,
Below script used for sftp get,
#/bin/bash
USER=xxx
PASS=xxx
HOST=xxx
REMOTE_FILE=$1
LOCAL_FILE_LOC=$2
cd $LOCAL_FILE_LOC
lftp sftp://$USER:$PASS@$HOST:10022 -e "get $REMOTE_FILE; bye"
If file does not exist in sftp server, and file (same as remote file name) exists in local dir,... (4 Replies)
Discussion started by: vhegde1011
4 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to select 30 days older files under current directory ,but not from subdirectory using below command.
find <Dir> -type f -mtime + 30
This command selecting all the files from current directory and also from sub directory .
I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies
7. Shell Programming and Scripting
Hi Experts,
I am using the below code for lftp with for loop but getting error at line 18.
Not able to understand if am using the for loop wrongly.
#!/bin/bash
FILE='/home/user/d.txt'
FILEName=/home/user/Test/HostName.txt
for HOST in $(awk '{ print $0}' $FILEName);do
... (5 Replies)
Discussion started by: sharsour
5 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
Ok, Im back with another small problem. I created a script (the one posted in the last thread). After some help from some members here all is good. The problem is I made it... (4 Replies)
Discussion started by: ozman911
4 Replies
9. UNIX for Advanced & Expert Users
Please let me know what is lftp options combination to wait and download a file from target as soon as its gets created. I tried with different options but not able to get it working as I need
any help would be appreciated (4 Replies)
Discussion started by: bmkux
4 Replies
10. Shell Programming and Scripting
Hi all,
I am using linux box ...i dont find the manual entry of sar command through
man sar ...it is in unix not in linux although i have to check the cpu utilization and paging...any alternative of sar command..
Thanks
Vijay Sahu (1 Reply)
Discussion started by: vijays3
1 Replies