Execution Problem with Cron

Guys,

I am beginer in unix. There is a cobol file with fixed-width. I want to read the total Line, Word and character count. I have tried with wc-l unix command, but it returns '0'.

Please advice me the correct command/steps to get the record count.

Thanks in advance.

cat <file> | wc -l
cat <file> | wc -c
cat <file> | wc -w

Thanks mshilling.

I have tried with above commonds. But it is not working.
Can anybody have the idea of my above mentioned problem.

Is this a Cobol database file? There is every chance that the WC command will not find any EOL characters to count!

Try the

file

command to see exactly what type of file you are dealing with.

The title to your posting is "Execution Problems with Cron", and yet your posting contained nothing about "cron" or "crontab". Instead you only referred to problems with "wc".

If you have a problem with "wc" and an "Execution Problem with Cron", I suggest you solve your "wc" problem first, outside of "cron" (i.e. from the command line), then once that's solved, go on to whatever problem you are having with "Cron".