At 2004-09-01 21:16:24 -0700, [EMAIL PROTECTED] wrote: > > I simply want name of standard output file in my script. > > For example... > if user runs :- ./myscript > anyfile.txt > > In this case I need "anyfile.txt"
That's an unsound design. Don't prevent your users from redirecting to a device or piping to another command. And if the program really wants to know which file contains what, it should be naming and writing them itself, not asking users to jump through pointless hoops. At the very least, you should just take the filename as an argument (as has been pointed out several times already). -- ams _______________________________________________ ilugd mailinglist -- [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[EMAIL PROTECTED]/