ksh program run with different results by different users


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ksh program run with different results by different users
# 1  
Old 03-06-2006
ksh program run with different results by different users

Hi,
I wrote a ksh program on Unix.
One thing I don't understand: some users run it with different results.
I suspect it's either "cat" or "grep" command.

Basically, with one group of user, the 'cat' or 'grep' command is not getting the data I need and that changed the result.

Is the above the real reason and what should I do with it?

Thanks for your help!
# 2  
Old 03-06-2006
ksh program

Hi,
I just found out that the ksh program would run sometimes correctly but not all the times for the some users.
Does this mean anything to anybody?

Thanks!
# 3  
Old 03-07-2006
Not much to go on here. Try nailing down the path:

export PATH=/usr/bin:/usr/local/bin

or whatever.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to Run Multiple Systems Checks and mail me the results after every reboot- Linux

Hello, I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot. For this, I figured I'd use the @reboot parameter that crond comes with. I have added the below onliner... (3 Replies)
Discussion started by: pocodot
3 Replies

2. Shell Programming and Scripting

ksh script find command not printing any results

Hello, Hitting a wall on this one. When at the command prompt it works fine: # find /home/testuser -name 'PAINT*canvasON.txt' /home/testuser/PAINT_canvasON.txt # pwd /home/testuser # ls -l PAINT*canvasON.txt -rw-r--r-- 1 root user 23 Feb 07 02:58 PAINT_canvasON.txt... (2 Replies)
Discussion started by: seekryts15
2 Replies

3. Shell Programming and Scripting

Seeing unexpected results when i run through cronjob

Hi I'm having hard time here with below script. If i run script manually i see expected results but, if i keep this script in cron job i'm getting unexpected results. Unexpected results means even though condition is true,cronjob returning output of else condition. This script and cronjob... (2 Replies)
Discussion started by: buzzme
2 Replies

4. Shell Programming and Scripting

How to store results of multiple sql queries in shell variables in ksh?

Hi, I have a script where I make a sqlplus connection. In the script I have multiple sql queries within that sqlplus connection. I want the result of the queries to be stored in shell variables declared earlier. I dont want to use procedures. Is there anyway else. Thanks in advance.. Cheers (6 Replies)
Discussion started by: gonchusirsa
6 Replies

5. SCO

Users can't run w command

Hi There I am running SCO Openserver 5.07 When a user try to run the command w they get the following error: w: Cannot open /unix for reading: Permission denied (error 13) On another server also running running SCO Openserver 5.07, and trying to run the w command they get the following... (4 Replies)
Discussion started by: wjace
4 Replies

6. Shell Programming and Scripting

Writing sql results to file using ksh -nevermind

I'm having problems with writing my sql results to a file: sqlplus -S username/password@DB <<!! set echo off set verify off set showmode off set feedback off set timing off set linesize 250 set wrap off set pagesize 0 set newpage none set tab off set trimspool on set colsep... (1 Reply)
Discussion started by: avillanueva
1 Replies

7. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

8. Shell Programming and Scripting

Calling C program from cron results in no output

I can call a C program from the shell and results are outputted as normal. The C program processes some files and spits out a .csv file. If I scheduled it in cron, there is no output. If their a special way to schedule C programs in cron? thanks & regards (1 Reply)
Discussion started by: hazno
1 Replies

9. Shell Programming and Scripting

script to run shell command and insert results to existing xml file

Hi. Thanks for any help with this. I'm not new to programming but I am new to shell programming. I need a script that will 1. execute 'df -k' and return the volume names with specific text 2. surround each line of the above results in opening and closing xml tags 3. insert the results of step... (5 Replies)
Discussion started by: littlejon
5 Replies

10. Programming

C program with two results.

I have this program that I execute into UNIX UX and after into UNIX AIX. The program are just below: #include <stdio.h> struct A { double d; char a; }; struct B { char a; double d; }; void main() { struct A Va; struct B Vb; (7 Replies)
Discussion started by: Gandalfcgb
7 Replies
Login or Register to Ask a Question