|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Log file
Hi All,
I am new to Linux OS. I am trying to run a batch programs, so i using Shell script to run the batch files. And the binaries which i am running dumps log data to command prompt.I am trying to store this in log file ">log.txt". I have posted below my shell script code ************************************************** ******** #!/bin/sh PATH=/bin:/prj/bin /prj/bin/RunLibTestStatic -pf tiff.cfg -lqp 0 30 -lqp 1 32 >> out_qp30.txt echo "Done." ************************************************** ******** This will create a file " OUT_QP~1.txt " instead of "out_qp30.txt" please let me know how to correct this problem. Thanks fido |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
How are you looking at the file with the unix ls command or with dir in DOS? That is a DOS filename display, not UNIX or Linux.
|
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
You are correct. I was looking from windows so it was showing me "OUT_QP~1.txt" but when i did "ls" it is showing me "outqp2.txt?" is there any way that i can get it has "outqp2.txt" when i am looking from windows. Thanks fido |
|
#4
|
|||
|
|||
|
No. Windows is windows. Are you running cygwin? Is that why you are looking at files thru Windows?
Cygwin has a windows-like screen you can use - it is called xwindows, on linux it could be called gnome, for example. |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Quote:
I have one more question. Even in unix when i do "ls" the log file name ends with "?" something like this "out_qp30.txt? " should i include something in the shell to remove this "?" thanks fido Last edited by fido.genial; 08-14-2009 at 01:30 PM.. Reason: adding |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
I get the impression that your disc partition is formatted FAT32 not NTFS (hence the MDSOS style filenames). No comment on how to fix it because there are too many unknowns.
|
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
Thanks fido |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read a file and search a value in another file create third file using AWK | King Kalyan | Shell Programming and Scripting | 11 | 06-19-2009 12:05 AM |
| Need help with awk - how to read a content of a file from every file from file list | tanit | Shell Programming and Scripting | 7 | 03-10-2009 05:19 AM |
| file size comparision local file and remote file | dba.admin2008 | Shell Programming and Scripting | 4 | 11-13-2008 04:57 PM |
| Reading a file and writing the file name to a param file. | thebeginer | UNIX for Advanced & Expert Users | 1 | 10-05-2007 04:38 PM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 04:25 AM |
|
|