Search Results

Search: Posts Made By: parpaa
2,788
Posted By parpaa
file is not available on local working directory....
file is not available on local working directory. let me copy tat to local directory and will check ..

---------- Post updated at 03:05 PM ---------- Previous update was at 03:00 PM ----------
...
2,788
Posted By parpaa
Hi CarloM Thank you so much for your...
Hi CarloM

Thank you so much for your response, Unfortunately bash scripting is very new to me. I dont know how to do the checks which you asked me to do :( We dont have any whitespaces in file...
2,788
Posted By parpaa
Scott, Here is the output .. File movement ...
Scott, Here is the output ..

File movement
connecting to host@abc.com..
Enter password:
sftp> cd Test
sftp> put Test_File_201309.txt
File "Test_File_201309.txt" not found.


----------...
2,788
Posted By parpaa
File Not found - Bash script
I'm facing issues in executing the bash script of mine. This script will pick the latest file received and connects SFTP server and files is placed on this remote server.
Error message
Enter...
3,412
Posted By parpaa
Thanks Bakunin and Scott for your speedy replies....
Thanks Bakunin and Scott for your speedy replies. Much appreciated - it worked
3,412
Posted By parpaa
Invalid arithmetic operator
Hi bakunin,

Really appreciate for your help, when I tried running the modified script
This the error am facing. Any idea?
delete.sh: line 3: typeset: 32 sales.txt: syntax error: invalid...
3,412
Posted By parpaa
[Solved] Grep in bash script
Hi Experts,

I'm writing script to find out last files and its modified date - unfortunately am having problem with the below script.

Error message:

"grep: sales.txt: No such file or...
1,298
Posted By parpaa
Bash Date
Hi yoda

It worked.. Thank you so very much
1,298
Posted By parpaa
Date format in Bash Script
Hi Experts
I'm struggling with the dates in bash scripting.
here is my code
due1=`grep "$member" Due.txt | tail -n 1 | cut -d "," -f2 | tr -d "\15"`
duedate1=`date +%Y-%m-%$due1`
echo $due1...
7,121
Posted By parpaa
I will try this - Thank you ---------- Post...
I will try this - Thank you

---------- Post updated at 08:20 PM ---------- Previous update was at 10:02 AM ----------

Hi All,

I figured out the issue- it was because I dint have write...
7,121
Posted By parpaa
Thank you Corona, I will check on sFTP...
Thank you Corona,

I will check on sFTP thing -:b:
7,121
Posted By parpaa
Folder permission: drwxr-xr-x You might be...
Folder permission: drwxr-xr-x

You might be right, this might be different issue-

The piece of code is something like this

if [[ "${date1}" > "${date2}" ]]

then
echo "file...
7,121
Posted By parpaa
[SOLVED] Permission Denied
Hi Experts,

When I try to run the bash script (Script.sh) I see this error. my file permissions are -rwxrwxr


Am I missing anything here?

Thank you



I tried doing but no luck
8,184
Posted By parpaa
Thank youuuuuu
Thank you Scott
8,184
Posted By parpaa
Date format in Bash Script
Hi Experts,

We get "Day" of a month in a variable, so how to make date of out it?

To make more sense
if my variable $DAY contains "12" and month and year will be current date (as of today)...
3,964
Posted By parpaa
thank you
Perfect, Thank you soooo very much :b::b::b::b::b::b:
3,964
Posted By parpaa
Thanks again
One last question,

Is there any way to deal with date "comparison"??
since this will be a string compare;
3,964
Posted By parpaa
Thank you rudi
that did it. Thank you

---------- Post updated at 11:44 PM ---------- Previous update was at 11:39 PM ----------

if [[ ...]] && [[ ...]]
elif [[...]] && [[..]]
else "sometext"

Will this...
3,964
Posted By parpaa
Invalid arithmetic operator
Hi experts,

I'm facing trouble with the below bash script, any help is appreciated

#!/usr/bin/bash
..
if (( "${date1}" > "${l_date1}" ))

then
echo "success"

else
echo "nothing"
fi
...
2,625
Posted By parpaa
Thanks again
This one works perfectly awesome, Thanks!:b:
2,625
Posted By parpaa
Ooopssss!
Yes you are right MadeinGermany :(

As it dint err'ed out, this mistook it. Thanks for catching
2,625
Posted By parpaa
Thank you sssssssssssssssssssso much guys
Hi

Thank you so much guys!!! its working :b:
2,625
Posted By parpaa
invalid format character
Thank you so much for your reply

unfortunately it error out with this message

printf: `(': invalid format character
2,625
Posted By parpaa
Help with stat command
Hi Experts,

I am here with very simple request:

#!bin/bash


a=`stat -c %y log1.csv`

echo $a


and this stat command returning value as
2013-08-11 05:42:10.000000000 -0400:

But ...
1,106
Posted By parpaa
I love this forum:b: Thank you so much for your...
I love this forum:b: Thank you so much for your valuable inputs. This article is just what I'm looking for automation.
Showing results 1 to 25 of 32

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