Hi guys,
�does anybody knows of strange behavior of the more command when invoked in a script executed by the crontab?
I have a more command in a script. The more command execution differs when the script is run from cron or from the prompt .
thanks in advance
What do you think "more" should be doing when your script runs from cron?
actually, reads a file
I need an example file from the user, but "cat" and "more" behaves different in that file (supposed with just one line). cat reads "garbage" (blank spaces) and more, does not; but only when executed interactively, not from cron.
OK, more info.
when executed from cron:
- more command includes in the output three lines: the first one has several semicolon characteres (":"); the second line has the name of file to be "mored"; the third line is equal to the first one.
when executed inteactively, this does not happen.
I am astonished.!!
Thank you, Perderabo.
Actually, that is the problem.