Syntax to execute tmadmin command


 
Thread Tools Search this Thread
Operating Systems AIX Syntax to execute tmadmin command
# 1  
Old 09-16-2014
Syntax to execute tmadmin command

Could you please help me with the syntax to execute tmadmin command in AIX server?

I have a script that works fine in Linux (OEL). Below is the one :

Code:
tmadmin 2> /dev/null > /tmp/psstat1 <<EOF
psr
quit
EOF

I need the corresponding one in AIX. The same command is not working. Tried making some modifications. But didn't work.

Could you please help me?
# 2  
Old 09-16-2014
What isnt working?
The best would be to show us the error message you get...
# 3  
Old 09-17-2014
Sorry for bugging. There was mistake from my side. The TUXCONFIG value was not properly set. It's been corrected and is working now.

Now the problem is that, when scheduled through the crontab, the tmadmin commands are not working. I tried setting all the values that were set, when I ran manually (successful execution). But didn't help.

Below is the execution sequence (I got by including set -x) for the set of commands given in my earlier note. What I could make out from this is that, after the tmadmin gets executed, the tmadmin command (psr) isn't getting executed. Probably the commands within EOF isn't getting executed.

Code:
+ 1>> /aa/test/scripts/test.log
+ tmadmin
+ 2> /dev/null + echo
+ 1>> /aa/test/scripts/test.log

Could you please help me with this?

Last edited by Pandee; 09-17-2014 at 12:25 PM..
# 4  
Old 09-17-2014
When jobs execute properly in interactive mode but not when using cron, 99% of time the issues are because the environment is not set...
How do you set the environement for Tuxedo? using a profile file you source e.g.
Code:
 . /~/profile4tux

in which case add that as first line of your script you use in cron

What do you find in /var/adm/cron/log?


I have no more Tuxedo now ( used to run on HPUX...) but sure you have to set the PATH correctly, cron only knows of /bin:/usr/bin...

Last edited by vbe; 09-17-2014 at 12:32 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Execute ssh command with additional terminal command to any remote user not working script

Hello i am having an issue with bash script and this is the code now=$(cat hosts1.txt | awk '{print $2;}') while read n ;do ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers' When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies

2. Shell Programming and Scripting

How to execute a command on each line of output from another command?

Hello :) new to bash not to programming. I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward. find {target_root} -group wrong_group gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies

3. Red Hat

Issue in tmadmin command in Linux

Hi , I am trying to execute the below command, i got error msg.. Please advice me how to solve this See, When i raised psr cmd., then i got error like above , Please help on this THanks Mani (0 Replies)
Discussion started by: Mani_apr08
0 Replies

4. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

5. Shell Programming and Scripting

Cannot execute/finish script because of last line syntax error: unexpected end of file/token `done'

first of all I thought the argument DONE is necessary for all scripts that have or begin with do statements which I have on my script, However, I still don't completely understand why I am receiving an error I tried adding another done argument statement but didn't do any good. I appreciate... (3 Replies)
Discussion started by: wolf@=NK
3 Replies

6. HP-UX

ps command syntax

I use hp HP-UX. I want to get vsz of the process . What is the syntax ... /run>ps -help ps: illegal option -- h ps: option requires an argument -- p usage: ps (3 Replies)
Discussion started by: chuikingman
3 Replies

7. Shell Programming and Scripting

not able to execute this script ( getting syntax error)

#!/bin/bash -xv # hss_backup.sh #Set the Shared Services Home SHARED_SERVICES_HOME=$2 #SHARED_SERVICES_HOME=/app/hyperion/products/Foundation DESTINATION=$1 #DESTINATION=/home/oracle/backups/HSS_BACKUP # # Make sure the ${HYPERION_HOME}/deployments directory is exist # check fails for... (3 Replies)
Discussion started by: telstra
3 Replies

8. Shell Programming and Scripting

How to build a command into a string rather than execute the command

I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example: mycmd='' if ...; then $mycmd='sudo ' fi $mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile res=`$mycmd` (I'm also not sure of the best way to execute the command from the... (1 Reply)
Discussion started by: littlejon
1 Replies

9. UNIX for Dummies Questions & Answers

Plz Help : How to use write command to execute command on some other terminal

Hi Group , I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages. - i m writing >write user-id ! ls o ctrl-d inspite of executing the command ls,other terminal shows ! ls. Thnx in advance. (2 Replies)
Discussion started by: Aashish
2 Replies

10. UNIX for Dummies Questions & Answers

command syntax

Hi, Does anyone knows the command syntax for the following Unix commands: at mount The OS is the Chorus/Mix 4.3 BSD Unix. The "at" command does the following: at a precise date and hour it executes a desirede command. Many thanks !!! Regards, Pedro Pereira (3 Replies)
Discussion started by: pmap
3 Replies
Login or Register to Ask a Question