AT command Error


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users AT command Error
# 1  
Old 01-11-2015
AT command Error

Hi

I have used the AT command in my shell script to schedule the jobs. Sometimes it works fine but sometimes it throws an error, such as :
Code:
at: can't change the owner of your job to you.

I could not find any solution to this issue yet.
If anyone can please provide any pointer what doe this mean and how it can be resolved?

Thanks in advance
MD
Moderator's Comments:
Mod Comment Please use CODE tags; not bold font to show sample input, output (including diagnostics), and code.

Last edited by Don Cragun; 01-11-2015 at 11:39 PM.. Reason: Change Bold tags to CODE tags for diagnostic output.
# 2  
Old 01-12-2015
Quote:
Originally Posted by MD21
Hi

I have used the AT command in my shell script to schedule the jobs. Sometimes it works fine but sometimes it throws an error, such as :
Code:
at: can't change the owner of your job to you.

I could not find any solution to this issue yet.
If anyone can please provide any pointer what doe this mean and how it can be resolved?

Thanks in advance
MD
Moderator's Comments:
Mod Comment Please use CODE tags; not bold font to show sample input, output (including diagnostics), and code.
I haven't seen this diagnostic before. What OS are you using?

What output does the command id produce?

Are you remotely logged into this system?

Check the at(1) man page on your system. Is there an at.deny file on your system? If so, is your user-name listed in it?

Is there an at.allow file on your system? If so is your user-name listed in it?
# 3  
Old 01-12-2015
This seems to be Solaris. The error message means, that the at-command cannot successfully call chown on the job file created under /var/spool/cron/atjobs.

Can you please post the output of
Code:
type at
ls -l /usr/bin/at
ls -ld /var/spool/cron/atjobs
id
umask

# 4  
Old 01-14-2015
Thanks Don, for guidance.

Please find below the required details:
OS : AIX

id command output is:
server1:user1[115]$ id
uid=168559443(svc) gid=95311237(uni)

Regarding at.deny and at.allow files, none of the file exist in our system.

Please let me know if it gives you any idea about the issue.

---------- Post updated at 09:09 AM ---------- Previous update was at 09:08 AM ----------

Thanks hergp for the response.
I will provide the details in a while.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

I'm facing problem with rpm command, when running the command and appears this error:

exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1). 0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies

2. Shell Programming and Scripting

Syntax error with ps command

i am trying the blow command in vain on Linux Terminal. kill -9 `ps -eaf | grep weblogic.NodeManager | grep wls103 | awk '{print $2}'` kill: usage: kill pid | jobspec ... or kill -l kill -9 $(ps -eaf | grep weblogic.NodeManager | grep wls103| awk '{print $2}') kill: usage: kill pid |... (7 Replies)
Discussion started by: mohtashims
7 Replies

3. UNIX for Dummies Questions & Answers

Nail command error

Hello all. I am currently using Red Hat Enterprise Linux Server release 5.8 (Tikanga). I have multiple users on this system and intend to use nail command to send out emails. When I enter the command: nail <some-email-address> its accepts the command and sends out an email. But when I... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

4. Shell Programming and Scripting

find command error

Hi, We have a shell script which looks into a directroy for any folder older than 30 days and removes them. The command being used is find $ARCHIVE_DIR -type d -mtime +$PURGE_HIST_DAYS -exec rm -rf {} \; It removes some folders but then throw below errors for others: find:... (2 Replies)
Discussion started by: DejaVu
2 Replies

5. Shell Programming and Scripting

Linux Command Error for nawk command

Hi All We are migrating our projects from unix environment to linux. I tried running a install script which sets up my project, i.e. the directory structure and all. But in the middle of the script i started receiveing following error : nawk: command not found . So i need to know which... (1 Reply)
Discussion started by: vee_789
1 Replies

6. Shell Programming and Scripting

command not found error

hello every time i run the following code for val in fileX fileY fileZ do $val=`ls -l $val | awk '{print $5}'` done i got error message command not found , i tried to add ' and " but nothing works its only worked wen remove $val= but i want the name of the file and the value ... (9 Replies)
Discussion started by: mogabr
9 Replies

7. Shell Programming and Scripting

Error with using a shell command(looks more generic error)

Hi, This error is actually out of implementing the command posted here - https://www.unix.com/shell-programming-scripting/155589-remove-blank-lines-merge-lines-shell.html Here is the error i get - awk: Input line xxxxx cannot be longer than 3,000 bytes. The source line number is 1.... (1 Reply)
Discussion started by: dvah
1 Replies

8. Shell Programming and Scripting

awk command in script gives error while same awk command at prompt runs fine: Why?

Hello all, Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val: > cat getnon0file.sh #!/bin/bash this="getnon0file.sh" USAGE=$this" InFile="xyz.38" Min="0.05" # awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Discussion started by: catalys
4 Replies

9. Shell Programming and Scripting

sed command error

Hi, Could some one help me please ? When I execute this command # paste -s -d"^m" swagent.log | sed '{s/\"\./\"\.\n/g}' > swagent.new I get this error. sed: Function {s/\"\./\"\.\n/g} cannot be parsed. Many Thanks in advance Regards, Nagu (1 Reply)
Discussion started by: srnagu
1 Replies

10. Shell Programming and Scripting

If..else command gives error

Hi, I am a newbie and was getting an error when I use the if..else syntax. The script looks like this echo "Please specify the database version (9i/10g): " read VERS if then echo "Its a 9i Database" sqlplus -s $puser/$ppass << EOF_I spool cxcreate9i.lst @... (3 Replies)
Discussion started by: bhatia333
3 Replies
Login or Register to Ask a Question