Search Results

Search: Posts Made By: pkabali
1,552
Posted By pkabali
Thanks! I will try this out and get back to you....
Thanks! I will try this out and get back to you. Is there anyway to make the grep string `cat filelist.txt` work the way I want it to?
1,552
Posted By pkabali
Both options are fine, however I imagine...
Both options are fine, however I imagine displaying a filename without any string match would be tougher. If the filename is displayed and it has no matched string it need not have a tab.
1,552
Posted By pkabali
I thought it should be possible without a loop...
I thought it should be possible without a loop and i remember having done something similar before. its just driving me nuts.
If it is absolutely necessary or much simpler to use a loop i wouldnt...
1,552
Posted By pkabali
search for content in files. Name of files is in another file. Format as report.
Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output...
12,469
Posted By pkabali
Thanks Chubler, this seems to work pretty well.
Thanks Chubler, this seems to work pretty well.
2,167
Posted By pkabali
Hi mirni How the the | sh work? would be glad...
Hi mirni
How the the | sh work? would be glad if you could point me to some documentation
thanks
4,862
Posted By pkabali
maybe a stupid question but what are you using to...
maybe a stupid question but what are you using to send the email? Whenever I send such html mails I use sendmail

have you tried mailx -m ? uuencode? sendmail?
2,167
Posted By pkabali
extract columns from file and send mail
Hi
I have a file of the form

name1,lastname1,email1@gmail.com,9.08243E+12,team1,role1,username1,password1
name2,lastname2,email2@gmail.com,9.08243E+11,team2,role2,username2,password2

I need...
12,469
Posted By pkabali
Thanks Chubler, will definitely give this a try....
Thanks Chubler, will definitely give this a try. It was one of the things I was trying to look into, but couldnt figure out how to do it.
I will update the post, once I try it out
12,469
Posted By pkabali
Hi Chubler_XL My initial reaction was sudo...
Hi Chubler_XL

My initial reaction was sudo as well. However the servers are managed by another datacenter and it is not possible for me to get them to add a sudo command for every time I think up...
12,469
Posted By pkabali
su with expect...in a single command?
Hello
I am trying su from one user to another in a script. Now the person who runs the script(user) cannot have the password for the user he is su -ing to (webuser) .

Here is my script which...
Forum: Linux 04-08-2011
1,612
Posted By pkabali
Borrowed this from some post ( sorry cant...
Borrowed this from some post ( sorry cant remember).


For greping/searching and displays a lines before and b lines after context



nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print...
2,038
Posted By pkabali
adding a mkdir `date'+%Y-%m-%'` and chmod it...
adding a
mkdir `date'+%Y-%m-%'` and chmod it to 777 at beginning of script
then change the retrieve directory to this new directory
Forum: Linux 04-08-2011
1,612
Posted By pkabali
hi is the pattern you are grepping for...
hi

is the pattern you are grepping for always going to start with a and end with i?

Then Please try
sed '/start point/,/end point/!d' file.txt

ie

sed '/a/,/i/!d' file.txt
8,137
Posted By pkabali
Thanks for you reply. Yes I ssh into the system...
Thanks for you reply. Yes I ssh into the system and it has a timeout of around 30 min.
I usually just run my script as

./My_script &

Is the nohup neccessary? IS the absence of the nohup the...
Forum: Linux 04-08-2011
120,619
Posted By pkabali
it seems that the answer to that question might...
it seems that the answer to that question might depend on the shell you are using

Apparently if you use csh then you are in luck
10.9 Built-in Shell Commands...
8,137
Posted By pkabali
Script with infinite loop stops after sometime
Hi
I am working on a server that is set up and maintained by a third party. It seems whenever I run bash scripts in the background (with a &) with while [ 1 ] loops in them they seem to me killed in...
4,371
Posted By pkabali
Hi Could I ask whether the owner of the folder...
Hi
Could I ask whether the owner of the folder to which you are saving the file is the same as the one running the cronjob? Also what are the permissions on the folder?
Thanks
2,080
Posted By pkabali
shot in the dark here. Maybe an issue with...
shot in the dark here. Maybe an issue with permissions on the .pl file? is it executable

Also as Mirni said, have you pasted the entire code ( because it seems the error is in line 11? )
2,080
Posted By pkabali
can you try hardcoding the path to...
can you try hardcoding the path to ncn_CheckDir.pl ( also is there a typo ncn_CheckDir.pl and ncm_CheckDir.pl ?? )

#!/usr/bin/sh
'exit 255' USR1
./ncm_CheckDir.pl -a ...
8,986
Posted By pkabali
Hi Kurumi Thanks for your reply.could you...
Hi Kurumi
Thanks for your reply.could you please explain your code? Also is it possible to print the time and etime on the same line?

does the ~/etime/ mean anything which contains an etime?
I...
8,986
Posted By pkabali
Hi Franklin Could you please explain what you...
Hi Franklin
Could you please explain what you are doing with the statements? I am relatively new to sed and awk and would appreciate the help. This way I can try and figure out if the code you wrote...
13,081
Posted By pkabali
I take it you are not going to pass the filename...
I take it you are not going to pass the filename as a parameters from the command line? ($3)

Please refer to the following link on using source files
...
8,986
Posted By pkabali
Hi Franklin52 Thank for posting but the...
Hi Franklin52
Thank for posting but the solution doesnt seem to be working. It is not only printing entire lines it is also printing lines without etimes.

I would require an output like...
Forum: Linux 04-07-2011
120,619
Posted By pkabali
Please refer to the many examples on this forum...
Please refer to the many examples on this forum for trapping signals

for eg.

https://www.unix.com/unix-advanced-expert-users/90254-trap-ctrl-c-shell-script.html

Hope this helps

Another one...
Showing results 1 to 25 of 44

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