i have a problem with unix


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users i have a problem with unix
# 1  
Old 10-05-2006
i have a problem with crontab

Hi,
> i have a problem using the crontab command. i have a program which
> will show a pop-out in the screen using the say command when the
> program is run. but when i put the program into the crontab command, the
> program works perfectly but it did not show any pop-out on the screen.
> may i know what is the problem here?

> Thank you for any of your advice.
# 2  
Old 10-05-2006
i have a problem with unix

Hi,
> i have a problem using the crontab command. i have a program which
> will show a pop-out in the screen using the say command when the
> program is run. but when i put the program into the crontab command, the
> program works perfectly but it did not show any pop-out on the screen.
> may i know what is the problem here?

> Thank you for any of your advice.
# 3  
Old 10-05-2006
ckng, please do not cross-post. It is against the rules.

I have merged both the threads.
# 4  
Old 10-05-2006
oh,,sorry,, thanks
# 5  
Old 10-05-2006
Hi,

i believe you need to direct the output to somewhere. maybe you can try
* * * * * your command > /dev/null > &1
not tested though.
# 6  
Old 10-06-2006
err.. it did not work, is there any other solutions???
# 7  
Old 10-06-2006
What do you mean by popout? Is it just printing a line on the output (say, a screen)? If it is just that, then all you have to do is redirect the program's output:
Code:
* * * * * your_command > /tmp/yourcommand.outfile 2>&1

If it is some complicated java code or something that pops up a window, you won't be able to do that from cron.

The /tmp/yourcommand.outfile will be overwritten everytime the program runs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Typical problem in UNIX

Input file I have a file with four fields. f1,f2,f3,f4 A,1,10,00,S B,2,20,00,00,D C,3,100,00,00,G I want Output like f1|f2|f3|f4 A|1|10,00|S B|2|20,00,00|D C|3|100,00,00|G please help on this (4 Replies)
Discussion started by: bharat1211
4 Replies

2. UNIX for Advanced & Expert Users

Problem with a lp from UNIX

Hi, how we are? I have a problem, I have a PDF in unix and i call a Shellscript, it does : lp -d queue archive.pdf A simply print. I have many printers, so in some printers the PDF is printing with a diferent margin left and right margins, it cuts the really print. I try fix it,... (6 Replies)
Discussion started by: dcastellini
6 Replies

3. Shell Programming and Scripting

pl/sql in unix problem

hi all i have written this small code. sqlplus $schema_name/$passwrd@$instance <<eof set serveroutput on; declare lv_count pls_integer; lv_option varchar2(20); begin select count(*) into lv_count from all_objects where upper(object_name)=upper('$temp_file1');... (1 Reply)
Discussion started by: infyanurag
1 Replies

4. SCO

unix installation problem

hi, im tring installaing sco unix 5.05 in my pc but it is showing an "memory error loading kernel fd(64)unix.text loading ram disk image fd(64)rootfs" can anybody tell me how to solve this problem. my system configuration is 3.2ghz processor,1gb ram,d101ggc mother board thank u bln (1 Reply)
Discussion started by: blnprasad
1 Replies

5. UNIX for Dummies Questions & Answers

Unix 10.2 Backup Problem

We have an older HP Unix 10.20 system that we rarely ever use anymore. Most of our jobs on it are from 1994 to 2002. Anything after that is on Windows XP. The Unix system was backed up religiously every day. Because of space constraints some of the jobs were removed from the system after a... (3 Replies)
Discussion started by: fozzybear
3 Replies

6. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

7. UNIX for Advanced & Expert Users

Problem booting unix

Hello, We had a system shutdown last night and now the server won't boot because of volume is seriously damaged (this affects all volumes). Any suggestions on how to repair. Any suggestions welcome Thanks (1 Reply)
Discussion started by: bobman
1 Replies

8. SCO

Problem during unix installation

i have a problem with installing unix after booting system by itself floppy , during checking the hardware devices computer hangs , and stops. it checks: %fpu %serial %floppy %console %pci %adapter %tape %cd-rom G hd_config in this place system got stop. remember i passed this step at... (1 Reply)
Discussion started by: uranium
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX problem? Unix programm runs windows 2000 CPU over 100%

Okee problems...!! What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies

10. UNIX for Dummies Questions & Answers

Unix login problem

When i am trying to login to my unix machine. It is directly loging me into root ( / ) directory, instead of my home directory. Why this is happening. And generally when this happens (4 Replies)
Discussion started by: ds_sastry
4 Replies
Login or Register to Ask a Question