Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mo7

  1. mo7

    Using time ranges to find data

    Hello, If you are programming in C++, you can use this: time_t rawtime; struct tm *timeinfo; //Create a structure for system time // Get system time time (&rawtime); timeinfo = localtime(&rawtime); cout<<asctime(timeinfo)<<endl;
  2. mo7

    convert perl script from unix to windows

    Hello ChrisHunt, I used the command getcwd. It works. Thanks for your advice of not get hunging up on converting every step.
  3. mo7

    convert perl script from unix to windows

    Hello stevexff and everyone, I don't have problem with the command chdir. Actually the chdir (in windows) is the equivalent of pwd (in unix). The problem i'm encountring is that the parameter "-|" in the open function is not recognized in windows environnement. If you put this code on a unix...
  4. mo7

    convert perl script from unix to windows

    Hello CJason, There is different MODE for the open function. if MODE is '-|', the filename is interpreted as a command which pipes output to us. I got this explnation from this web site: http://perl.active-venture.com/pod/func/open.html Hope this can say something to you.
  5. mo7

    convert perl script from unix to windows

    Problem when moving a perl script wrote on unix to windows. This script is wrote in perl on unix machine. open(INPUT_LINE,"-|") || exec(chdir); $current_path = <INPUT_LINE>; chomp($current_path); close(INPUT_LINE); I have a problem with "-|" when moving a perl script wrote on unix machine to...

Part and Inventory Search

Back
Top