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.
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.
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...
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)
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)
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)
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)
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)
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)
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)
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)
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)