LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-05-2014, 06:20 AM   #1
sharif06
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 03-05-2014, 06:41 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,646

Rep: Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128
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.
Old 03-05-2014, 08:48 AM   #3
sharif06
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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."
 
Old 03-05-2014, 09:03 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,289

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
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) ?
 
Old 03-05-2014, 09:03 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,646

Rep: Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128
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.
 
Old 03-05-2014, 09:29 AM   #6
sharif06
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-06-2014, 01:04 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,646

Rep: Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128
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.
 
Old 03-06-2014, 01:09 AM   #8
sharif06
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-06-2014, 01:54 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,646

Rep: Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128Reputation: 5128
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.
 
Old 03-06-2014, 08:34 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,289

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
Quote:
Originally Posted by sharif06 View Post
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 ?
 
Old 03-06-2014, 03:41 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,502

Rep: Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617Reputation: 2617
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/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Meaning of dot slash for Running an Executable in Linux LXer Syndicated Linux News 0 01-19-2012 11:30 AM
syntax error on running configure file in cygwin sugan General 1 10-08-2010 02:34 AM
Bash scripting issue with "source" or . (dot) operator (Cygwin & Ubuntu) brian.hussey Programming 3 01-22-2010 02:11 PM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 05:19 PM
How to get file extension (without the dot) scls19fr Linux - General 11 08-21-2008 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration