Saving output of whos command into a file - save

How to save output of whos command into a file in Octave. Can anyone suggest me?

To save the screen output, the diary can be useful.
The following commands would save the whos output in a file named "whos_output.txt".
diary("whos_output.txt")
whos
diary off

Related

Find error record file while processing too many files in same bucket in apache beam java sdk

I have 20 files (csv files) in the same bucket. I am able to read all the file in one go and load on to bigquery. But when there is some data type mismatches, im able to get that row into invalidDataTag where as i am unable to find the file name that has the error record.
inputFilePattern is gs://bucket-name/* this picks up all the files that are present under the bucket. and reading the files as below
PCollection<String> sourceData = pipeline.apply(Constants.READ_CSV_STAGE_NAME, TextIO.read().from(options.getInputFilePattern()));
Is there a way where i can find the file name that has the error row in it ?
My suggestion would be to add a column to the BigQuery table that indicates which file the record came from.

Trying to make a list of all the images for preprocessing but getting an error

I am trying to add all the images in the list from my computer in the jupyter notebook. But after creating an object name as class_name and put it equal to covid, I created a sourse_dir file and destination_dir file, and when I run it shows no error. but when I try to make a list of source_dir files I get an error the system can not find the path. does anyone can help. please see the attached image of my jupyter notebook and path of source_dir file. . can anyone help me why I am getting this error.
enter image description here
enter image description here

Read data from External data sheet - eggPlant

Is there a way to read data from an external data sheet like excel, Text file etc. in eggPlant?
When running the same script for various set of Input parameters this would prove useful for me instead of hardcoding the values..
-Siva
Since this is the most viewed Eggplant question, I'll give it a more robust answer.
Yes! Using data from a data file is a fantastic way to parameterize your test without hardcoding!
Saving Data
To do so, you have to save your data in .csv or .txt format, within the Suite's Resources directory. This allows you to open and interact it from within Eggplant Functional.
Importing Data
In your script, you can reference these data files with just their filename, for example,
put ResourcePath("myData.txt") into FilePath
will save the entire file myData.txt from the Resources directory into a variable FilePath.
Accessing Data
You can then access each row of that file like any other file.
put line 1 of file FilePath into Name
put line 2 of file FilePath into DOB
If you save your data as a .csv, you can specify a row and column of a specific piece of data.
put item 2 in line 1 of file FilePath into Last_Name
Read more about reading files in the Eggplant Documentation!
For more complicated resource files, read this page in the Eggplant Documentation!
1. Enter the data in the excel sheet and save it as a CSV file.
2. Piece of code:
repeat with theData= each line of file "D:\TestData.csv"
log item 1 of theData
end repeat

ghostscript command line arguments output file name change

I am using ghostscript to print a pdf by command line arguments in c#. but it shows the printed document's name as ghostScript output. I want to change it to a custom name(as letter's name). I know in command line parameters, it does not allow to change it. please help.
I'm sorry, I really don't understand what you're asking. You specify where Ghostscript should write it's output using the "-o" or "-sOutputfile=" command line parameters. The name of the input file does not influence the output file.
Unless you are using something like ps2pdf.....
If you can clarify what you are trying to do, I or someone else can likely help.
Chris

how to clear the wireshark filter combo contents

Does anyone know how to clear the filter drop down (combo) contents in Wireshark? Are the contents stored in a file somewhere?
For the life of me, I can't figure this out. And, the Wireshark help file only tells me "The entries in the pull down list will remain available even after a program restart."
Sigh...
Answered my own question.
The filter history is stored in
c:\documents and settings\foo\Application Data\Wireshark\recent, where "foo" is your windows user name.
I don't use Wireshark in Linux, so I don't know where this file lives there. I would imagine in your home directory.
In that file, there's a section labeled "######## Recent display filters (latest last), cannot be altered through command line ########". Each recent.display_filter line is an entry in the filter drop down. Just remove the filters you don't want in the drop down, or remove them all to clear the filter history entirely.
They're in ~/.wireshark/recent and named "recent.display_filter".
This is now in %APPDATA%\Wireshark\recent_common
AKA C:\Users\username\AppData\Roaming\Wireshark\recent_common
Look for the ######## Recent display filters (latest last), cannot be altered through command line ######## section.
I found how we can remove saved wireshark filters on Windows10 systems:
First you have to go to this directory C:\Users\<your_username>\AppData\Roaming\Wireshark and open the recent_common file with any text editor and then press on CTRL + f search the name of the filter that you want to delete and delete the whole line and the filter will never come back!
I hope I could help you.

Resources