using buildear with multiple file aliases - tibco

I am using the buildear functionality in tibco to include multiple file alisases
I am able to include the alias of the projlib but i have multiple jar files created as file aliases.
can you help how can i add them
currently the command i am using is
buildear -x -v C:\CLEStubs.projlib /Deployment/abc.archive -o c:\abc.archive -p C:\test\
but i have some other jar files and it fails in validation
Initiating validation...
Error: no alias for
Error: no alias for
Error: no alias for
Error: no alias for
An external alias could not be mapped.: The external file alias 'uuid-3.2-sources.jar' could not be mapped.
(4) errors and (22) warnings found
Errors were detected in the project. The archive was not built
Aborting.
can you please help

try the parameter -a:
-a (optional) specify a properties file containing aliases for DTL library locations
Aliases file format is:
NameOfTheAlias=/path/to/the/library
buildear -x -v C:\CLEStubs.projlib /Deployment/abc.archive -a /path/to/aliasPropertyFile -o c:\abc.archive -p C:\test\
And the alias property file should contain entries like:
tibco.alias.uuid-3.2-sources.jar=/path/to/Fahrplan.jar
You can export these entries in Designer.

Related

No such file or directory No top level modules, and no -s option

I have Icarus Verilog installed on macos, but when I run it in the terminal to get a .vcd file, it always give me these messages:
ben#Bens-macbook ~ % iverilog -o khanh.vvp khanh_tb.v
khanh_tb.v: No such file or directory
No top level modules, and no -s option.
Can anyone help me with this problem?
Those error messages mean that the input file (khanh_tb.v) is not in your current directory.
Either change your current directory to the one where the file is, or run iverilog and specify the path to the .v file:
iverilog -o khanh.vvp path/to/khanh_tb.v
path/to/ is just an example; you should change it to the directory where the file resides.

I get broken archive when I download to the folder

I get right archive when I used command:
wget https://mysite/published/my_archive.tar.gz
I can open this archive and use.
But I create fofder for archive
drwxr-xr-x folder_for_archive
and used command for download archive to the folder:
wget https://mysite/published/my_archive.tar.gz -o "./folder_for_archive/https://mysite/published/my_archive.tar.gz"
But archive is broken and I cannot use it.
What can I do?
The -o argument to wget doesn't do what you think it does:
-o logfile
--output-file=logfile
Log all messages to logfile. The messages are normally reported to standard error.
Either replace wget by curl (whose -o option does do what you expect), or use -O (capital letter O) instead:
-O file
--output-document file
The documents will not be written to the appropriate files, but all will be concatenated together and written to file.
Notice the use of plural "documents": wget is a recursive downloader, so it might produce more than one file. But in your case, it should be fine.
See the wget manual for more information on both options.

Is it possible to generate jmeter html report using properties file as parameter using command line query

below is the command i used
jmeter.bat -n -t C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\Iconductor_Writeback_With_Configurationbck_Property.jmx -l "C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\output\result2.csv" -e -o "C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\output\html" -p QA.properties
if i remove the properties file parameter then the html report get generated.
You're using -p command line argument which acts as the replacement for jmeter.properties file which contains Results file configuration which is necessary for proper dashboard generation.
If you have an extra file with properties used in your test you should use -q command-line argument instead of -p
More information:
Configuring JMeter
Overriding Properties Via The Command Line
Apache JMeter Properties Customization Guide
Going forward get used to look at jmeter.log file, in the majority of cases it should contain sufficient information in order to guess the root cause of the issue
JMeter uses reportgenerator.properties file for HTML report related configuration.
Official documentation recommends not to change the content in reportgenerator.properties file. It suggest user to copy the properties to be changed into user.property file and provide required values.
Following could be used to generate HTML report at the end of the testing
jmeter.bat -n -t C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\Iconductor_Writeback_With_Configurationbck_Property.jmx -l "C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\output\result2.csv" -e -o "C:\Users\vingale\Desktop\Jmeter\apache-jmeter-5.0\Writeback\output\html" -q user.properties
You will have to ensure the report output directory is empty.You will have to manually clear-out the directory or ask JMeter to delete the content forcefully with -f option
-f, --forceDeleteResultFile
force delete existing results files and web report folder if
present before starting the test

rename command is not overwriting as it should by default, how do I force overwrite?

I have a bash script that uses the rename command as follows:
sudo rename 's/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/Date-$1-$2-$3__Time-$4:$5:$6/' 2019*
According to the rename man page the command should overwrite by default and not overwrite by using the -o flag. But when I run the script it is not overwriting existing files. However I get an error thrown back and the duplicate files do not get any other processing done by the script.
Renaming Files
20190710220231.WAV not renamed: Date-2019-07-10__Time-22:02:31.WAV already exists
20190710220300.WAV not renamed: Date-2019-07-10__Time-22:03:00.WAV already exists
20190710220338.WAV not renamed: Date-2019-07-10__Time-22:03:38.WAV already exists
20190710220349.WAV not renamed: Date-2019-07-10__Time-22:03:49.WAV already exists
Frustrated, I tried to just use the mv command but gives me a different error:
mv: target '20190710222433.WAV' is not a directory
So I added a / and get the same error. Any advice?
you can use the option -f to force over write existing files:
rename -f ...
man rename:
-f, --force
Over write: allow existing files to be over-written.

identify file not accessible ssh

My OS is Ubuntu16 in virtualbox.
I'm trying to write a script to transfer multiple files(filename:t01,t02,t03) with scp.
This is my code:
vim scriptname
#!/bin/bash
for a in {01..03}
do scp -i ~/home/username/.ssh/id_rsa -r t$a
username#xx.xx.xx.xxx:/home/username/Desktop
done
And when I typed this in the terminal
./scriptname
I got this
Warning: Identity file /home/ian/home/ian/.ssh/id_rsa not accessible: No
such file or directory.
t01: No such file or directory
Warning: Identity file /home/ian/home/ian/.ssh/id_rsa not accessible: No
such file or directory.
t02: No such file or directory
Warning: Identity file /home/ian/home/ian/.ssh/id_rsa not accessible: No
such file or directory.
t03: No such file or directory
One thing I couldn't understand is that I actually wrote "/home/ian/.ssh/id_rsa" in the script. But the error message showed "/home/ian/home/ian/.ssh/id_rsa". I have tried to type my ssh_key directory in different ways, such as "/.ssh/id_rsa" but still couldn't work.
What did I do wrong?
Thank you!
t01: No such file or directory
Told you that it cannot access the file
Because the dictionary you run the bash script is not the same to where the files are.
If you want to put files not in the same dictionary, you have to give the full path for all of them.

Resources