unix

Cutting the output of a dspmq command

I am trying to cut the output of the dspmq command This is the output given: QMNAME(QMGR) STATUS(Running) QMNAME(QMGR) STATUS(Ended Normally) QMNAME(QMGR) STATUS(Ended Unexpectedly) QMNAME(QMGR) STATUS(Running) This is how I would like the output to look: QMGR Running QMGR Ended Normally QMGR Ended Unexpectedly QMGR Running I have tried various combinations of the cut command with no luck or success….
Read more

how to change positions of fields in a file in unix?

I have a file with below data FILE1: field1 field2 field3 field4 field5 456 2545789632789 457852 12548 6548458 252 4571258697425 245787 85746 5455555 44 5555555 12 4444444 I need data as below from above file: FILE2: field1 field2 field3 field4 field5 456 2545789632789 457852 12548 6548458 252 4571258697425 245787 85746 5455555 44 5555555 12 4444444 Source: unix

getting timeout error while running selenium code from shell script

I have no idea about selenium internal functions, I am just debugging one of my shell scripts and have seen below error: com.thoughtworks.selenium.SeleniumException: Timed out after 120000ms at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:101) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:95) at TestUIs$HtmlCommandProcessor.doCommand(TestUIs.java:352) at TestUIs.executeStep(TestUIs.java:255) at TestUIs.runTest(TestUIs.java:200) at TestUIs.main(TestUIs.java:79) I tried to understand if this is beacuse of some issue of selenium not being able to login to that url…
Read more

Delphi – Unix timestamp to datetime does not work

I have the following timestamp: 1444288186967. When I put that in a Epoch Converter, I get correcly 08 Oct 2015 07:09:46 as result. Although, when I use (as mentioned in another post) the function UnixToDateTime(const AValue: Int64): TDateTime I get 02 Sep 47737 11:02:47. Strange isn’t it? My code (using TMS Aurelius) Person.EndDate.Value := UnixToDateTime(FHit.TimestampUntil); Where FHit.TimestampUntil is a Int64…
Read more

Shell script steps equivalent to windows bat scritp issue

I have shell script(sh) in that below following lines need to write equivalent to windows bat file. Any body help on this **shell script:** cd $AUTOMATEDTESTHTTPDIR/../abc/Input for i in `ls -d *` do cd $i cp * ../../def/Unidentified/Requests cd .. done cd $AUTOMATEDTESTHTTPDIR/../abc/Output for i in `ls -d *` do cd $i cp * ../../def/Unidentified/Responses cd .. done cd $AUTOMATEDTESTHTTPDIR/../def/Deliver…
Read more

How does (struct _IO_FILE *)->_IO_read_base get set?

Apologies for the probably weird question title. I didn’t want it to look like a dupe with a title like “How does C file I/O work at the low level?”. I want it to be obvious that my question is specific. Anyways, when a file is fopen‘d in C, it returns a struct _IO_FILE *. FILE *f = fopen(“hello.txt”, “r”);…
Read more