Sponsored Content
Top Forums Shell Programming and Scripting Automating Crontab through script?? Post 302739299 by Neo on Tuesday 4th of December 2012 02:02:11 AM
Old 12-04-2012
Quote:
Originally Posted by nikhil jain
how can we do that Joseph??? Can u plz guide me on that?
Did you search the Internet using Google or your favorite search engine prior to your reply to this answer?

Please don't ask people in these forums to answer your questions you can easily find using Google; or please demonstrate you tried to search first by showing you attempted to help yourself before asking someone here to do it for you.
  • Did you search these forums for an answer?
  • Did you search the net for an answer?
  • Or, did you just reply with another question because you did not want to do the work yourself?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

automating sftp script

I have to write an automated sftp script which uses password authentication method to access the remote server. I want to pass the password as a parameter or to be included in the script itself, so that when i run the sftp script, it should not prompt me to enter the password. Thanks in advance... (1 Reply)
Discussion started by: Rajeshsu
1 Replies

2. Shell Programming and Scripting

Automating Logform Command in a script

Hi all I am trying to create a script to automate the creating of filesystems. The problem I am having is as follows:- After creating the Log Logical Volume, I want to format it, using the logform command. The Logform command expects user intervention, by typing 'y' and 'enter' to continue.... (2 Replies)
Discussion started by: TheDoc
2 Replies

3. UNIX for Dummies Questions & Answers

cron ? automating a script

Hi all. basically i need to run a script every 30 minutes. my script is simply an error report: errpt thats it, is there anyway to make this happen every 30 minutes without having to type errpt in, the script will get bigger as i add more things to do but just need to know how to... (8 Replies)
Discussion started by: hassanj
8 Replies

4. Shell Programming and Scripting

Automating Interactive script

I have a script that will install software on all remote host. At the end of the script it starts the install.sh part and goes into a interactive mode asking Yes or No questions and prompting to add a username and password. My question is how can I script this so that these questions are... (7 Replies)
Discussion started by: soupbone38
7 Replies

5. Shell Programming and Scripting

Automating A Perl Script over a database

Dear Scripting Gods I've never done shell scripting before and have only recently got to grips with Perl, so apologies for my naivity. I've written a perl program which takes in two files as arguments (these are text documents which take in the information I need) The perl program spits out a... (1 Reply)
Discussion started by: fraizerangus
1 Replies

6. Shell Programming and Scripting

Help with automating a bash script

Hi Guys, There are some emails going deferred as we got some new IP's from our ISP. So I was trying to manually copy the deferred mail and forward it to our sales team so that they can contact our client. I am new to this script thing, but luckily I was able to write the code to extract the data... (1 Reply)
Discussion started by: linuxrulz
1 Replies

7. Shell Programming and Scripting

crontab, automating tasks

I want to back up some of my system folders on a regular basis. Let's say some every day, but some other every week. I kinda know how to get backup like this form: tar cjf archive-$(date +%Y%m%d).tbz2 / -N ./archive-$(date -d yesterday +%Y%m%d) But, I DONT KNOW how to add this files to... (2 Replies)
Discussion started by: dr_mabuse
2 Replies

8. Shell Programming and Scripting

automating a perl script

Hi, I have a perl script that takes in 2 numerical values as ARGV. perl script.pl parameter1 num1 num2 in my case I have 1000's of num1 and num2. I can have them in separate files. Please let me know how to automate this run using shell scripting or using awk, so that I don't have to... (4 Replies)
Discussion started by: Lucky Ali
4 Replies

9. Shell Programming and Scripting

Automating Linux Script

I want to automate the creation or processing of the following: Directory and subdirectory creation for your scenario company Files in each of the directories Symbolic links from 2 subdirectories to their parent directories Setting appropriate file permissions for the directories and... (1 Reply)
Discussion started by: ekglag2
1 Replies

10. Homework & Coursework Questions

Automating Linux Script

1. The problem statement, all variables and given/known data: I want to automate the creation or processing of the following: Directory and subdirectory creation for your scenario company Files in each of the directories Symbolic links from 2 subdirectories to their parent directories... (16 Replies)
Discussion started by: ekglag2
16 Replies
res_search(3)						     Library Functions Manual						     res_search(3)

NAME
res_search, res_query - Queries domain server and checks response LIBRARY
Standard C Library (libc.a, libc.so) SYNOPSIS
#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int res_search ( const char *domain_name, int class, int type, u_char *answer, int answer_len;) The res_query syntax is as follows: int res_query ( const char *domain_name, int class, int type, u_char *answer, int answer_len;) PARAMETERS
Points to the fully-qualified name of the domain. If the domain_name parameter points to a single label and the RES_DEFNAMES bit is set, as it is by default, the function appends domain_name to the current domain name. The current domain name is defined by the name server in use or in the /etc/resolv.conf file. Specifies one of the following parameters: Specifies the ARPA Internet. Specifies the Chaos network at MIT. Requires one of the following values: Host address Authoritative server Mail destination Mail forwarder Canonical name Start of authority zone Mailbox domain name Mail group member Mail rename name NULL resource record Well known service Domain name pointer Host information Mailbox information Mail routing information User (finger) information User ID Group ID Points to a location of the server's reply. Specifies the length of the answer pointed to by the answer parameter. DESCRIPTION
The res_search() and res_query() functions construct a query, send it to the local server, and await a response. In addition, res_search() implements the default and search rules specified by the RES_DEFNAMES and RES_DNSRCH resolver options. The function returns the first suc- cessful reply. The res_search() and res_query() functions part of a set of subroutines that form the resolver, a set of functions that resolve domain names. Global information that is used by the resolver functions is kept in the _res data structure. The /include/resolv.h file contains the _res data structure definition. RETURN VALUES
Upon successful completion, the res_search() function returns the size of the answer. If the answer is larger than the value of the answer_len parameter, the function fails and returns a value of -1. ERRORS
If an error occurs during a resolver operation, the h_errno external variable is set. Error code values and reasons are defined in <netdb.h>. FILES
Contains the name server and domain name. RELATED INFORMATION
Functions: dn_comp(3), dn_expand(3), dn_find(3), dn_skipname(3), _getlong(3), _getshort(3), putlong(3), putshort(3), res_init(3), res_mkquery(3), res_query(3), res_send(3). delim off res_search(3)
All times are GMT -4. The time now is 11:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy