Search Results

Search: Posts Made By: Gautham
2,840
Posted By Gautham
Actually I'm trying to re post the file to the...
Actually I'm trying to re post the file to the remote machine if it fails due some sort of network troubles so I'm capturing a log file for this and using '226' presence in it, if not there re-post...
2,840
Posted By Gautham
Second try mput failed
I'm having few doubts with below questions not able figure out the reason:


mput operation used via shell script failed with 550 code return from FTP - "Overwrite cannot be done". ( Having all...
Forum: Solaris 08-09-2014
4,397
Posted By Gautham
Thanks Corona @achenle: Haha.. That will be...
Thanks Corona

@achenle: Haha.. That will be an obvious 1st question for everyone !
Forum: Solaris 08-08-2014
4,397
Posted By Gautham
Recover rm command
Consider a situation where in you have used rm command wrongly in a particular directory say


rm -r *
and we don't have any backup of those files which ever are deleted.

NOTE: I'm not facing...
Forum: Programming 07-23-2014
1,764
Posted By Gautham
Unique Number Identifying
I'm trying to solve the below problem for a number:

Enter a number and if it has all unique digits print unique number else non-unique number.
Eg:

Input=123; Output=unique number
Input=112;...
2,923
Posted By Gautham
Yes. Its working fine now. Thanks!
Yes. Its working fine now. Thanks!
2,923
Posted By Gautham
As you can see there is a line missing in #2 ...
As you can see there is a line missing in #2 output. 'country=india'

My looking is actually between any two 'country=india' , NR = = 3
2,923
Posted By Gautham
input: country=india ram ajit sham ...
input:

country=india
ram
ajit
sham
vijay //need to be removed
country=india
suman
tharan
raju
country=india
suman
tharan
raju
Above code's output:
...
2,923
Posted By Gautham
Deleting line with range check in awk
Consider a input.txt as:

country=india
ram
ajit
sham
vijay //need to be removed
country=india
suman
tharan
raju
what i did is:

awk '$0~pat {n=NR+4} NR!=n'...
Forum: Solaris 06-12-2014
7,010
Posted By Gautham
Can you share that logs as well. what OS runs on...
Can you share that logs as well. what OS runs on that server?.

And in what aspect you are saying that it won't be a broken sendmail , so that i can help you better.
8,880
Posted By Gautham
Incoming File - like why can't it be moved or...
Incoming File - like why can't it be moved or copied from some other path.

So only when i CREATE a file in that specific path i would be able to use dtrace.

Any way to accomplish if the...
45,100
Posted By Gautham
Through what database you run your SQL Query ?. ...
Through what database you run your SQL Query ?.

In mySQL:

SELECT * FROM TABLE INTO OUTFILE '/your_location/filename';


In postgresql:


\o /your_location/filename/
SELECT * FROM TABLE;...
3,809
Posted By Gautham
@Ajayram With the below code: rsync...
@Ajayram

With the below code:


rsync -zrv source destination


we can't analyze your error.

Provide suitable examples atleast if not your exact command usage.
Forum: Solaris 06-11-2014
7,010
Posted By Gautham
I'm also new to solaris. Try with this official...
I'm also new to solaris. Try with this official link:
Installing and Updating Packages - Oracle Solaris Administration: Common Tasks...
Forum: Solaris 06-11-2014
7,010
Posted By Gautham
I guess you package is broken, as because: ...
I guess you package is broken, as because:


svcs -a | grep sendmail


should throw a result.

Can you check any update available for sendmail.
Forum: Solaris 06-11-2014
7,010
Posted By Gautham
have you checked the logs. Try checking its...
have you checked the logs. Try checking its status using:

/etd/init.d/sendmail status
3,693
Posted By Gautham
@Vinay Have a look into following link: ...
@Vinay
Have a look into following link:
https://linuxacademy.com/blog/linux/introduction-using-diff-and-patch/

It uses both diff and patch. Explains you exactly for what you're looking.
2,371
Posted By Gautham
Sir, I have a doubt in this. The code checks...
Sir, I have a doubt in this. The code checks lines present between two set of 'Type:' pattern, like if there is no 'Type:' in second set and if its not the same with all sets present in the file. ...
8,880
Posted By Gautham
I'm sorry Don, as i'm new here not aware of other...
I'm sorry Don, as i'm new here not aware of other platforms.

It is Solaris 5.10 version.

In destination path we won't create any .txt files .. it would be an incoming file to that path and...
2,371
Posted By Gautham
Fine Fine Fine !!!
Fine Fine Fine !!!
2,371
Posted By Gautham
Yes it works fine :). But still there is...
Yes it works fine :). But still there is something missing in it, as in that input given #7 the last type is with East Location so no issues.

Kindly check with this input:

...
8,880
Posted By Gautham
Thanks Jim. In case of unix is there any...
Thanks Jim.

In case of unix is there any feature for this.
2,371
Posted By Gautham
Yes sir, i tried your #2: For this input: ...
Yes sir, i tried your #2:

For this input:

Type:lovers,Loc=South-->1
003,PLAN3,60Days
004,PLAN4,60Days
005,PLAN5,60Days
Type:lovers,Loc=South -->2
003,PLAN3,60Days
004,PLAN4,60Days ...
2,371
Posted By Gautham
No, there can be only 3 lines present in such...
No, there can be only 3 lines present in such pattern, if there are already 3 lines under that pattern then it should skip such found patterns. But what i can surely tell is, there will be atleast...
2,371
Posted By Gautham
Kindly try for this input with the same code you...
Kindly try for this input with the same code you given above:

Type:lovers,Loc=South
003,PLAN3,60Days
004,PLAN4,60Days
005,PLAN5,60Days
Type:lovers,Loc=South
003,PLAN3,60Days
004,PLAN4,60Days...
Showing results 1 to 25 of 41

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