Search Results

Search: Posts Made By: rahul125
7,417
Posted By ygemici
i guess, you might have a Secure4Access profile...
i guess, you might have a Secure4Access profile and use Secure4Access for authentication and user access privileges..therefore firstly you must try to check your account permission Secure4Access...
1,908
Posted By smilesavvy
It will be created in your home directory as a...
It will be created in your home directory as a hidden directory. ~ represents Home Directory here.
895
Posted By vbe
Stop using this forum for all you requests, you...
Stop using this forum for all you requests, you have already been warned... next will be ban
Read again the forum rules you agreed to follow and post in adequate forum this forum is for shell and...
8,539
Posted By smilesavvy
I would suggest you to check the MAN page. ...
I would suggest you to check the MAN page.

sftp is an interactive file transfer program, similar to ftp, which performs all operations over an encrypted ssh transport. It may also use many...
2,133
Posted By MacMonster
You can directly use the variables from...
You can directly use the variables from ftp.properties. Parsing the file is not necessary. The code will look like this:


#!/bin/sh

. ftp.properties

ftp -vin >> ftp.log <<-!
open...
1,343
Posted By MacMonster
Without "-" or "+" in the "-mtime" option, it...
Without "-" or "+" in the "-mtime" option, it means EXTACT value. The "!" means NOT. Thus, the meaning of your original statement is to find any files which the last modified time are NOT EXACTLY two...
1,343
Posted By MacMonster
Your find command should rewrite to: find...
Your find command should rewrite to:


find $INDIR -type f -mtime -$DAYS -exec mv {} $OUTDIR \;
1,442
Posted By ahamed101
Following piece of code is what is known as...
Following piece of code is what is known as sourcing...
. ./archive.config

Once you sourc the file, all the parm=val will be available in the current shell...
So if you echo the param in the...
1,442
Posted By ahamed101
Try this... . ./archive.config find...
Try this...

. ./archive.config
find $SrcDirectory -type f "!" -mtime $Days -exec mv {} $DestDirectory \;


--ahamed
1,442
Posted By rdcwayx
awk -F =...
awk -F = '/Days=/{days=$2}/SrcDirectory=/{src=$2}/DestDirectory=/{dest=$2}END{print days, src, dest}' archive.config |while read DAYS INDIR OUTDIR
do
find $INDIR -type f "!" -mtime $DAYS...
1,302
Posted By clx
Just type the shell name (executable) you want to...
Just type the shell name (executable) you want to switch to.


$
$ echo $0
-bash
$ ksh
$ echo $0
ksh
$ csh
$ echo $0
csh


Press ^D or exit to go back to the previous shell ( in the...
1,271
Posted By itkamaraj
you can easily get the properties file values. ...
you can easily get the properties file values.

property file ftp.properties (ftp://ftp.properties) should have the below values


RemoteIP=123.213.123.13
userid=abcd
passd=xyz...
1,838
Posted By felipe.vinturin
Please, try this one: #!/bin/sh -x while...
Please, try this one:

#!/bin/sh -x
while read DAYS INDIR OUTDIR
do
echo "[${DAYS}] [${INDIR}] [${OUTDIR}]"
find ${INDIR} -type f -mtime ${DAYS} -exec mv {} ${OUTDIR} \;
done < ./tarconfig.sh...
1,838
Posted By felipe.vinturin
Have you tried: find $INDIR -type f "!" -mtime...
Have you tried:
find $INDIR -type f "!" -mtime $DAYS | xargs -t -I {} mv "{}" $OUTDIR

It uses an extra pipe, but it prints the command being execute!

---------- Post updated at 15:11...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 06:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy