{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/2289","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/2289/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/2289/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/2289/events","html_url":"https://github.com/robotframework/robotframework/issues/2289","id":125566561,"number":2289,"title":"Process library: Process configuration stdout and stderr does always overwrite if file name is same","user":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-08T08:35:15Z","updated_at":"2016-01-08T18:52:46Z","closed_at":null,"body":"When I have something like this: \r\n```\r\n| *** keywords *** |\r\n| Verify Process |\r\n| | Wait Until Keyword Succeeds | 120 | 10 | Check Status With Process |\r\n| |\r\n| Check Status With Process |\r\n| | Process.Start Process | some_command | stdout=${OUTPUT_DIR}${/}process.log | stderr=STDOUT | \r\n```\r\nNow each time ```Start Process``` keyword is called, the ```${OUTPUT_DIR}${/}process.log``` file is opened with ```w``` option, which will overwrite the file. In some cases it could be useful to provide possibility append in the file, instead of overwrite. Would it be possible to make the mode configurable? If it would be possible make such feature, any good ideas, how the mode should be defined?\r\n\r\nSomething like this perhaps:\r\n```\r\n| Process.Start Process | some_command | stdout=${OUTPUT_DIR}${/}process.log | stderr=STDOUT  | mode=append | \r\n```\r\nShould same mode be applied to both stdout and stderr or should there be separate configuration? I am on favor on using same mode for both stdout and stderr. \r\n\r\nBy looking the the code, the mode is hard coded in the ```_new_stream``` function, in 2.9.2 (did not look in to 3.0). And by a quick glance, it should be possible to make it configurable, with reasonable effort. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/comments/170089569","html_url":"https://github.com/robotframework/robotframework/issues/2289#issuecomment-170089569","issue_url":"https://api.github.com/repos/robotframework/robotframework/issues/2289","id":170089569,"user":{"login":"aaltat","id":2665023,"avatar_url":"https://avatars.githubusercontent.com/u/2665023?v=3","gravatar_id":"","url":"https://api.github.com/users/aaltat","html_url":"https://github.com/aaltat","followers_url":"https://api.github.com/users/aaltat/followers","following_url":"https://api.github.com/users/aaltat/following{/other_user}","gists_url":"https://api.github.com/users/aaltat/gists{/gist_id}","starred_url":"https://api.github.com/users/aaltat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaltat/subscriptions","organizations_url":"https://api.github.com/users/aaltat/orgs","repos_url":"https://api.github.com/users/aaltat/repos","events_url":"https://api.github.com/users/aaltat/events{/privacy}","received_events_url":"https://api.github.com/users/aaltat/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T18:52:46Z","updated_at":"2016-01-08T18:52:46Z","body":"*_append sounds better and clearer, let's go with that.\r\n\r\nMy use case, is again adb, sometimes the adb does not work properly and there is error. But the full error is only visible on the first time the command is run. I could divert the stdout and stderr to unique file but it's easier to get overall picture by reading single file."}}