Sponsored Content
Full Discussion: crontab question
Top Forums UNIX for Dummies Questions & Answers crontab question Post 85306 by steelrose on Tuesday 4th of October 2005 12:39:14 PM
Old 10-04-2005
crontab question

Why does this cron entry do nothing? It works interactively.

58 23 * * * mydate=`date '+%Y%m%d'`;mv /opt/home/user/file /opt/home/user/file_$mydate
steelrose
 

10 More Discussions You Might Find Interesting

1. Solaris

Crontab question

HI all, I would want to schedule a job to run every 2 weeks. In the mean time, i'm only able to schedule on every week. Is it possible to schedule 2 weeks on crontab? Thank you. (3 Replies)
Discussion started by: *Jess*
3 Replies

2. UNIX for Dummies Questions & Answers

Crontab Question.

I set up a job to run a script in a certain directory to remove certain files. The script seems to run as my logs indicate but nothing happens. If I run the script manually then it removes the correct files. I'm now wondering if crontab doesnt have access to remove files from the directory I'm... (9 Replies)
Discussion started by: NycUnxer
9 Replies

3. AIX

How-to crontab question

My question is how to specify the one-time execution of a shell script in crontab? For example: If I wanted to schedule shell "Test.sh" for one-time execution on December 13 at 8:00AM would it be as follows? 00 08 13 12 6 /usr/datatools/dtbackups/Test.sh > /usr/u/sybase_12.5/logs/Test.log &... (3 Replies)
Discussion started by: Alan.AIX
3 Replies

4. UNIX for Dummies Questions & Answers

Question about crontab

Hello guys, I have a server with Red Hat Enterprise Linux AS release 4 (Nahant Update 5), there i have a lot of users, im the root. I need to lock the use of crontab to the users, i mean, i dont want to give to the users the option to creat any crontab line, how can i do that? I tried to... (4 Replies)
Discussion started by: lestat_ecuador
4 Replies

5. HP-UX

Crontab question

Please cna you tell me if the following command entered in error would affect the crontab file crontab -e | more Thanks :) (12 Replies)
Discussion started by: blondie2407
12 Replies

6. Shell Programming and Scripting

crontab question

I have a user (xxx) who is allowed to run cron jobs when a job is launched from cron is the .profile sourced in? I am not sure it is so I setup a cron job as this user to do the following: 35 15 * * 0-5 su - xxx -c "ksh ls -lt /tmp" > /tmp.out and I am seeing the following error (see... (2 Replies)
Discussion started by: BeefStu
2 Replies

7. Solaris

Crontab question

I want to run a script on (say) the 4th friday every month. But if I include this line in the crontab : 45 9 22-28 * 5 echo '4th Friday'|mailx -s "Fri week 4" mike it sends me mail if the date is 22-28, OR the day is friday. So I get mail every day for a week , and also every friday. I... (2 Replies)
Discussion started by: mikejordan
2 Replies

8. UNIX for Dummies Questions & Answers

Another crontab question

Hey out there This is all I have in my crontab file. I know the crontab works because it was already out there and working. I simply replaced the existing with my line of code below to see if it worked. I uploaded 6 month old pdf files in this directory, stopped/started all the scripts that... (3 Replies)
Discussion started by: vsekvsek
3 Replies

9. Shell Programming and Scripting

Crontab question

I need to run an script every 10th and 25th day in every month at 11pm. the script name is /home/ss/automated.sh I tried to execute the script every day and everytime with the below syntax. its not executing it from crontab. * * * * * /home/ss/automated.sh Any idea why it not... (6 Replies)
Discussion started by: ramkumar15
6 Replies

10. Shell Programming and Scripting

Question on crontab

Hello, I have scheduled the execution of a file (delete_oldv02) every hour with crontab and it works perfectly. See below the instruction written. 0 */1 * * * /home/delete_oldv02 >>/home/delete_oldv02.log My first question is if I can add one more line to crontab. I also would like to... (5 Replies)
Discussion started by: dcaccount
5 Replies
KRB5_GET_CREDS(3)					   BSD Library Functions Manual 					 KRB5_GET_CREDS(3)

NAME
krb5_get_creds, krb5_get_creds_opt_add_options, krb5_get_creds_opt_alloc, krb5_get_creds_opt_free, krb5_get_creds_opt_set_enctype, krb5_get_creds_opt_set_impersonate, krb5_get_creds_opt_set_options, krb5_get_creds_opt_set_ticket -- get credentials from the KDC LIBRARY
Kerberos 5 Library (libkrb5, -lkrb5) SYNOPSIS
#include <krb5.h> krb5_error_code krb5_get_creds(krb5_context context, krb5_get_creds_opt opt, krb5_ccache ccache, krb5_const_principal inprinc, krb5_creds **out_creds); void krb5_get_creds_opt_add_options(krb5_context context, krb5_get_creds_opt opt, krb5_flags options); krb5_error_code krb5_get_creds_opt_alloc(krb5_context context, krb5_get_creds_opt *opt); void krb5_get_creds_opt_free(krb5_context context, krb5_get_creds_opt opt); void krb5_get_creds_opt_set_enctype(krb5_context context, krb5_get_creds_opt opt, krb5_enctype enctype); krb5_error_code krb5_get_creds_opt_set_impersonate(krb5_context context, krb5_get_creds_opt opt, krb5_const_principal self); void krb5_get_creds_opt_set_options(krb5_context context, krb5_get_creds_opt opt, krb5_flags options); krb5_error_code krb5_get_creds_opt_set_ticket(krb5_context context, krb5_get_creds_opt opt, const Ticket *ticket); DESCRIPTION
krb5_get_creds() fetches credentials specified by opt by first looking in the ccache, and then it doesn't exists, fetch the credential from the KDC using the krbtgts in ccache. The credential is returned in out_creds and should be freed using the function krb5_free_creds(). The structure krb5_get_creds_opt controls the behavior of krb5_get_creds(). The structure is opaque to consumers that can set the content of the structure with accessors functions. All accessor functions make copies of the data that is passed into accessor functions, so external consumers free the memory before calling krb5_get_creds(). The structure krb5_get_creds_opt is allocated with krb5_get_creds_opt_alloc() and freed with krb5_get_creds_opt_free(). The free function also frees the content of the structure set by the accessor functions. krb5_get_creds_opt_add_options() and krb5_get_creds_opt_set_options() adds and sets options to the structure . The possible options to set are KRB5_GC_CACHED Only check the ccache, don't got out on network to fetch credential. KRB5_GC_USER_USER request a user to user ticket. This options doesn't store the resulting user to user credential in the ccache. KRB5_GC_EXPIRED_OK returns the credential even if it is expired, default behavior is trying to refetch the credential from the KDC. KRB5_GC_NO_STORE Do not store the resulting credentials in the ccache. krb5_get_creds_opt_set_enctype() sets the preferred encryption type of the application. Don't set this unless you have to since if there is no match in the KDC, the function call will fail. krb5_get_creds_opt_set_impersonate() sets the principal to impersonate., Returns a ticket that have the impersonation principal as a client and the requestor as the service. Note that the requested principal have to be the same as the client principal in the krbtgt. krb5_get_creds_opt_set_ticket() sets the extra ticket used in user-to-user or contrained delegation use case. SEE ALSO
krb5(3), krb5_get_credentials(3), krb5.conf(5) HEIMDAL
June 15, 2006 HEIMDAL
All times are GMT -4. The time now is 08:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy