Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-05-2014, 06:20 AM
|
#1
|
LQ Newbie
Registered: Mar 2014
Posts: 4
Rep:
|
A dot appearing in the extension file, while running cygwin.
Hi,
I am facing trouble in running a file in cygwin in my 64 bit windows.
my problem is, i am trying to run a text file, where it is commanded that, first it will run a file and will create a output file, then this output file will work as a input file for another calculation and will create the result file.but the first output file, it is creating have a dot in the extension. that's why it is not being accepted as the input file for second run. My question is, why this dot is appearing in the file extension and how this can be solved.
Kind Regards;
Sharif, NTNU.
|
|
|
03-05-2014, 06:41 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,460
|
you gave no usable info, therefore we cannot give you usable answer. What kind of text file did you run? Where is it from? Why don't you just rename that first output file?
|
|
1 members found this post helpful.
|
03-05-2014, 08:48 AM
|
#3
|
LQ Newbie
Registered: Mar 2014
Posts: 4
Original Poster
Rep:
|
Actually i am doing the modelling of a pipe in a software, name USAP, i will do some parametric study, that is, i will change some parameter and will see the effect, that is what commanded in the text file.
The text file has no extension. it is just "File" type. The command given in this text file is such that, it will take a input file of the software i am using, then change some parameter as commanded and will give output as a file which has the extension according to the software i am using. Then dot is appearing in the extension of output file like it should be "sharif.uif" but it is coming "sharif.uif."
|
|
|
03-05-2014, 09:03 AM
|
#4
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
i would assume this is windows related since windows is very nitpicky with the suffixes of filenames.
kinda' like you can change a .xls to an .mp3 and it magically transforms into a music file.
would you be able to post some code around how this file gets generated (possible typo) ?
|
|
|
03-05-2014, 09:03 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,460
|
there is a command file <filename> to identify the type of the file. So you can check the real type of that command by that. Also you can try the switches -h -? --help to get help about the usage.
|
|
|
03-05-2014, 09:29 AM
|
#6
|
LQ Newbie
Registered: Mar 2014
Posts: 4
Original Poster
Rep:
|
pan64;
can i have your email address. i want to show you the file but i am not being able to attach the file here.
|
|
|
03-06-2014, 01:04 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,460
|
no, sorry, that is against the rules I think. From the other hand you may get much better support here. So please post your file here (at least the first few lines) - if you want to do so.
|
|
|
03-06-2014, 01:09 AM
|
#8
|
LQ Newbie
Registered: Mar 2014
Posts: 4
Original Poster
Rep:
|
File is not uploading here, so i am pasting it here;
#! /bin/sh
# Script for sensitivity analysis with usap
#---------------------------------------------
# Load level 1
cp AgbamiT0.uif seq1.uif
. erzatz "#Text" "Agbami_CASE1 " seq1.uif
. erzatz "#length" "1000.0" seq1.uif
. erzatz "#nel" "100" seq1.uif
. erzatz "#nnod" "101" seq1.uif
. erzatz "#currad" "300.0" seq1.uif
. erzatz "#fac" "1.20" seq1.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq1
eod
cp AgbamiT1.uif seq1.uif
. erzatz "#Text" "Agbami_CASE1 " seq1.uif
. erzatz "#length" "1000.0" seq1.uif
. erzatz "#nel" "100" seq1.uif
. erzatz "#nnod" "101" seq1.uif
. erzatz "#currad" "300.0" seq1.uif
. erzatz "#fac" "1.20" seq1.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq1
eod
#---------------------------------------------
# Load level 2
cp AgbamiT0.uif seq2.uif
. erzatz "#Text" "Agbami_CASE2 " seq2.uif
. erzatz "#length" "1000.0" seq2.uif
. erzatz "#nel" "100" seq2.uif
. erzatz "#nnod" "101" seq2.uif
. erzatz "#currad" "300.0" seq2.uif
. erzatz "#fac" "1.30" seq2.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq2
eod
cp AgbamiT1.uif seq2.uif
. erzatz "#Text" "Agbami_CASE2 " seq2.uif
. erzatz "#length" "1000.0" seq2.uif
. erzatz "#nel" "100" seq2.uif
. erzatz "#nnod" "101" seq2.uif
. erzatz "#currad" "300.0" seq2.uif
. erzatz "#fac" "1.30" seq2.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq2
eod
/cygdrive/H/Usap/bin/usappost.exe << eod
mplot
eod
|
|
|
03-06-2014, 01:54 AM
|
#9
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,460
|
it looks like a shell script but it uses a lot of other sripts/apps. I do not know if it was delivered with USAP or not. How is responsible for that script?
I can only suggest you to ask him (or the support) to fix this problem or write a small script to execute this script and rename the output file (remove that dot) and also execute the second part.
|
|
|
03-06-2014, 08:34 AM
|
#10
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Quote:
Originally Posted by sharif06
File is not uploading here, so i am pasting it here;
#! /bin/sh
# Script for sensitivity analysis with usap
#---------------------------------------------
# Load level 1
cp AgbamiT0.uif seq1.uif
. erzatz "#Text" "Agbami_CASE1 " seq1.uif
. erzatz "#length" "1000.0" seq1.uif
. erzatz "#nel" "100" seq1.uif
. erzatz "#nnod" "101" seq1.uif
. erzatz "#currad" "300.0" seq1.uif
. erzatz "#fac" "1.20" seq1.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq1
eod
cp AgbamiT1.uif seq1.uif
. erzatz "#Text" "Agbami_CASE1 " seq1.uif
. erzatz "#length" "1000.0" seq1.uif
. erzatz "#nel" "100" seq1.uif
. erzatz "#nnod" "101" seq1.uif
. erzatz "#currad" "300.0" seq1.uif
. erzatz "#fac" "1.20" seq1.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq1
eod
#---------------------------------------------
# Load level 2
cp AgbamiT0.uif seq2.uif
. erzatz "#Text" "Agbami_CASE2 " seq2.uif
. erzatz "#length" "1000.0" seq2.uif
. erzatz "#nel" "100" seq2.uif
. erzatz "#nnod" "101" seq2.uif
. erzatz "#currad" "300.0" seq2.uif
. erzatz "#fac" "1.30" seq2.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq2
eod
cp AgbamiT1.uif seq2.uif
. erzatz "#Text" "Agbami_CASE2 " seq2.uif
. erzatz "#length" "1000.0" seq2.uif
. erzatz "#nel" "100" seq2.uif
. erzatz "#nnod" "101" seq2.uif
. erzatz "#currad" "300.0" seq2.uif
. erzatz "#fac" "1.30" seq2.uif
/cygdrive/H/Usap/bin/usap.exe << eod
seq2
eod
/cygdrive/H/Usap/bin/usappost.exe << eod
mplot
eod
|
i dont see sharif.uif in the code excerpt above ?
|
|
|
03-06-2014, 03:41 PM
|
#11
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,666
|
I thought that the uif format died out back in 1995
unless it is the old magic-disk image format
Quote:
i am doing the modelling of a pipe in a software, name USAP,
|
is this the software ???
http://www.dxlabsuite.com/dxview/
if so it is WINDOWS software
and not linux that might run in cygwin
now
MinGW WOULD be able to run a windows exe from a LINUX shell script
http://www.mingw.org/
|
|
|
All times are GMT -5. The time now is 08:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|