Search Results

Search: Posts Made By: saurabhkoar
1,855
Posted By saurabhkoar
Adding a cron job that will execute everyday at 14:50 hrs
Hi
I want to execute a cron job everyday at 14:50 hrs. I have a script like this:

TMP_FILE="/tmp/tmpcron.txt"
RES=0
/usr/bin/crontab -l >> $TMP_FILE
ADD_JOB="50 14 * * *...
2,178
Posted By saurabhkoar
Can you please explain the logic? Also if I...
Can you please explain the logic?

Also if I miss the blank between DNS and username then it doesn't work.



wgp-fap-109:~ # ./srk.sh
DNS=cn=afpuser,o=company
DNS=cn=afpuser,o=company
pwd...
2,178
Posted By saurabhkoar
Any response on this?
Any response on this?
2,178
Posted By saurabhkoar
Actually I don't want to print in that format. I...
Actually I don't want to print in that format. I want the corresponding variables variables assigned to the corresponding value. As I will need the variables further. Like I want servicename variable...
2,178
Posted By saurabhkoar
Problem in tokenizing the string
Supposed I have a string in the format:

<service_name> = <ldap user FDN> : <password>

like

DNS = cn=user1,o=company : pwd

I want to tokenize like:

service name:DNS
UserName:...
4,959
Posted By saurabhkoar
Calling script from a RPM spec file
Hi,
I want to execute a script "myscript.sh" in the %post part of a rpm spec file. Suppose the script is placed in /opt/path. Then simply calling like sh /opt/path/myscript.sh from %post part (of...
1,921
Posted By saurabhkoar
@kalpeer, thanks a lot dude. Can you please...
@kalpeer, thanks a lot dude. Can you please clarify how it works? It will be helpful for me in later contexts as I am new to linux shell script area.Also I need to replace dot in any line by a comma....
1,921
Posted By saurabhkoar
Hi kalpeer, Thanks for your reply. Actually the...
Hi kalpeer,
Thanks for your reply. Actually the file may contain some line starting with #. Those lines we need to ignore. Also we need to ignore if there are any blank lines. So I think that time...
1,921
Posted By saurabhkoar
How to pass different number of arguments in a single shot
I have one configuration file. The number of lines in the file will vary. I need to pass each line as a parameter to a shell script in a single shot.
Ex:
Suppose file contains:
ou=x,o=z
o=y
...
1,950
Posted By saurabhkoar
Hi Skrynesaver/aigles, can you tell me the...
Hi Skrynesaver/aigles,

can you tell me the logic please. I am a beginner in the shell script area and it seems to very complex :( . Any useful link would also be helpful.
1,950
Posted By saurabhkoar
Script to replace last instance of . between two consecutive = sign by ,
Suppose you have a line like this:

cn=user.blr.ou=blr.india.o=company

The line should be converted like this:

cn=user.blr,ou=blr.india,o=comapny

Was wondering how to do that using shell...
25,576
Posted By saurabhkoar
Thanks a lot. Doubt clear :)
Thanks a lot. Doubt clear :)
25,576
Posted By saurabhkoar
Kernel Stack vs User Mode Stack
@fpmurphy,

That means in Linux each process has a user mode stack and a corresponding Kernel mode stack? So, there is two stacks per process?
25,576
Posted By saurabhkoar
Kernel Stack vs User Mode Stack
Hi,
I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode...
Showing results 1 to 14 of 14

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