Perl

Moderators: Jonathan
Number of threads: 1236
Number of posts: 3605

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Error in .sh files while running on windows Posted by HumaZeeshan on 19 Aug 2009 at 3:27 AM
Hi all


I want to run the file having extension .sh on windows and i have installed cygwin and some of my sh files are running perfectly but if i run the file having following code:


#!/bin/bash


"D:/sentenceclassifier/TrainTest" -n "All_Features" $1 $2 > t_a_.arff;

"D:/sentenceclassifier/TrainTest" -l LemmaSorted.txt -n "All_L" $1 $2 > t_a_l.arff;
"D:/sentenceclassifier/TrainTest" -l LemmaSorted.txt -p 31 -z -n "All_L_P31_Z" $1 $2 > t_a_l_p31_z.arff;

"D:/sentenceclassifier/TrainTest" -l LemmaSorted.txt -p 31 -z -u -n "All_L_P31_Z_U" $1 $2 > t_a_p31_z_u.arff;
"D:/sentenceclassifier/TrainTest" -l LemmaSorted.txt -s my-stop-list -n "All_L_S" $1 $2 > t_a_l_s.arff;

"D:/sentenceclassifier/TrainTest" -p 31 -z -n "All_P31_Z" $1 $2 > t_a_p31_z.arff;

"D:/sentenceclassifier/TrainTest" -p 31 -z -u -n "All_P31_Z_U" $1 $2 > t_a_p31_z_u.arff;

"D:/sentenceclassifier/TrainTest" -s my-stop-list -n "All_Stopwords" $1 $2 > t_a_s.arff;

"D:/sentenceclassifier/TrainTest" -z -n "All_Z" $1 $2 > t_a_z.arff;


and executing it as:
bash creatingtestfile.sh corpus_only_dataset
it gives error
bash.exe warning could not find /temp please create!
D:\sentenceclassifier\TrainTest\createtestingfile.sh: D:\sentenceclassifier\TrainTest is a directory




Can any one help to solve the problem by let me know what i m doing wrong... Urgent help please!!!!!!!!!!!!!!!!

Regards

Huma

Thread Tree
HumaZeeshan Error in .sh files while running on windows on 19 Aug 2009 at 3:27 AM
HumaZeeshan Re: Error in .sh files while running on windows on 19 Aug 2009 at 11:13 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.