Search Results

Search: Posts Made By: saggiboy10
748
Posted By saggiboy10
Checking for processes in Linux
I want to check processes on my Linux server

Normally we do a ps-ef|grep "search code"

Now we want to check for certain processes which are up and running and we want to get an email, whenever...
1,359
Posted By saggiboy10
Sending email with file names
i need to send an email to users on the files being loaded...how can i achieve this?

say, my source file directory has 2 files

file1.txt
file2.txt


I just want to send an email saying...
3,838
Posted By saggiboy10
Inserting sysdate into the XML!!
How do i insert the sysdate in the below xml file? This has to happen dynamically, meaning everytime the script runs, it shud put 2 sysdates in the below xml marked in red ...format is YYYY-MM-DD
...
789
Posted By saggiboy10
Capturing Fiscal Week
How do we capture the fiscal week of the year?

Say, if today is FY24...When i run my job next week i e FY25....It should automatically bring in that Value. I hope am clear.

This is how it...
765
Posted By saggiboy10
Searching a pattern and picking rows underneath them!
Hi, I have a requirement where i need to pick rows right below including the row where the search begins

EX:

USA CHINA INDIA
10 20 30
30 40 50
60 70 80...
1,104
Posted By saggiboy10
Reg:SFTP
I have a query in regards to SFTP....We have a SFTP ID/PWD, so say if the password changes

Would it fail my SFTP?


SFTP uses public/private keys for authentication right? So would it...
2,456
Posted By saggiboy10
Issue is resolved...Thanks so much
Issue is resolved...Thanks so much
2,456
Posted By saggiboy10
The files have ben Zipped but one final hurdle...
The files have ben Zipped but one final hurdle where i am facing problem is,

How do i send the zipped file as an email???
2,456
Posted By saggiboy10
Cool...Thanks... ---------- Post updated...
Cool...Thanks...

---------- Post updated 12-05-12 at 04:19 AM ---------- Previous update was 12-04-12 at 04:12 PM ----------

using

find . -name "*.txt" -print | zip att -@


It is...
2,456
Posted By saggiboy10
Thanks for the prompt reply...can u let me know...
Thanks for the prompt reply...can u let me know why did you mention att.zip twice in the below code mentioned..

uuencode att.zip att.zip | mailx -s "Att" user@domain.com


---------- Post...
2,456
Posted By saggiboy10
Zipping files
Hi All,

I have a scenario where in am using uuencode to send a txt file as an excel to end users( email attachment).I have 7 different files and these files are sent as emails 7...
3,600
Posted By saggiboy10
Easiest way to comment/uncomment a shell script?
cd path
line1
line2
line3
line4
line5



Lets say thats the sample script...So say if i have to comment the above script, which would be the better way so that whenever i want, i cud...
2,318
Posted By saggiboy10
Thanks for the reply..Still doesnt work ...
Thanks for the reply..Still doesnt work



mailx: invalid option -- r
Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
[-- sendmail-options ...]
...
2,318
Posted By saggiboy10
Sending attachments via unix
OS Linux....Just curious as to why this is not working...



uuencode test.txt "test.xls"|mailx -r xxx@server.com -s "validation report" emailrecipient1,emailrecipient2




Please...
1,900
Posted By saggiboy10
SFTP files from Unix to Window Server
I have a requirement, where in we need to SFTP files from the Unix box to the Windows server.

Since we are putting files...Where would we place the public/private keys from the Unix servers??
...
1,357
Posted By saggiboy10
mv is actually changing the original file to the...
mv is actually changing the original file to the one suffixed with the timestamp...

I need the timestamp suffixed file moved to a different path and the original file should be as it is.
1,357
Posted By saggiboy10
So wud the file be file_080912.txt ?
So wud the file be

file_080912.txt

?
1,357
Posted By saggiboy10
Suffixing a file with the timestamp
How do i suffix a file with a timestamp...also can i just have it in mmddyy format?
999
Posted By saggiboy10
it doesnt work as expected...get the same result...
it doesnt work as expected...get the same result as sed '/^Qwerty/d' file
999
Posted By saggiboy10
sed '/^Qwerty/d' file ......Works fine ...
sed '/^Qwerty/d' file ......Works fine


But what if say , i do not want the records below Qwerty Mango???? How can we handle this????


Please use next time code tags...
999
Posted By saggiboy10
Help with search criterai
Hi ,

I have requirement... where in there are headers in the file and i need to pick the records right below them...

Example;

Qwerty Apple
10 20 30'
30 40 50
50 60 70
Qwerty Mango
40...
2,329
Posted By saggiboy10
Awesome...Bala....Another Question.. Say,...
Awesome...Bala....Another Question..

Say, My file has headers in the file..

assume saggiboy is a header

saggiboy
1 2 4
2 4 6
3 5 6
saggiboy
5 5 6
7 7 7
8 8 8
saggiboy
9 9 9
10...
2,329
Posted By saggiboy10
Continuing on the same Question... Now how...
Continuing on the same Question...

Now how we select records...Earlier, we selected prior records..but now, say

xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888

I want to select whats...
2,329
Posted By saggiboy10
perl -pe '/^fff/ && last'...
perl -pe '/^fff/ && last' file..........Worked........Simple Awesome...


I would love to know how this actually worked...some explaination on the code so that i can explain this to my team. :)...
2,329
Posted By saggiboy10
How to select files based on a criteria?
I have a file.....

xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888


Now my requirement is, Say if, i want to select only those records prior to the record fff 555 888...

how do i go...
Showing results 1 to 25 of 59

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