Greetings David!
I am having problem while redirecting the file.
bin/uv -admin -info > SessionInfo.txt
when giving above command I got data like the below in the file.
Details for DataStage Engine release 7.5.3.1 instance "ade"
===============================================================================
Install history : Installed by dsadm (admin:dsadm) on: Jul 14 2010 10:55:13
Instance tag : ade
Engine status : Running w/active nls
Engine location : /vol01/home/dsadm/Ascential/DataStage/DSEngine
Binary location : /vol01/home/dsadm/Ascential/DataStage/DSEngine/bin
Impersonation : Enabled
Administrator : dsadm
Autostart mode : enabled
Autostart link(s) : /etc/ds.rc
Startup script : /vol01/home/dsadm/Ascential/DataStage/DSEngine/sample/ds.rc
Cache Segments : 0 active
User Segments : 26 active
19 printer segments abandoned!
7 phantom printer segments!
DSnum Uid Pid Ppid C Stime Tty Time Command
44960 dsadm 1560578 1568816 0 04:42:47 - 0:00 dsapi_slave 7 6 0
61160 dsadm 1675442 1761442 0 Oct 18 - 0:00 dsapi_slave 7 6 0
61276 dsadm 1314900 1458312 0 04:41:08 - 0:00 dsapi_slave 7 6 0
65198 dsadm 1769702 1745026 0 04:32:29 - 0:00 dsapi_slave 7 6 0
65296 dsadm 1409178 1728522 0 Oct 19 - 0:00 dsapi_slave 7 6 0
44744 dsadm 1462496 1683488 0 Oct 19 - 0:00 dsapi_slave 7 6 0
36694 dsadm 913524 1753272 0 07:34:35 - 0:00 dsapi_slave 7 6 0
But some underline characters displaying (^[[4m) in the file when checking in vi mode which I need to remove with some command(not in vi mode).
Please check the below file and help me with a command to remove those characters.
Details for DataStage Engine release 7.5.3.1 instance "ade"
===============================================================================
Install history : Installed by dsadm (admin:dsadm) on: Jul 14 2010 10:55:13
Instance tag : ade
Engine status : Running w/active nls
Engine location : /vol01/home/dsadm/Ascential/DataStage/DSEngine
Binary location : /vol01/home/dsadm/Ascential/DataStage/DSEngine/bin
Impersonation : Enabled
Administrator : dsadm
Autostart mode : enabled
Autostart link(s) : /etc/ds.rc
Startup script : /vol01/home/dsadm/Ascential/DataStage/DSEngine/sample/ds.rc
Cache Segments : 0 active
User Segments : 26 active
19 printer segments abandoned!
7 phantom printer segments!
^[[4m DSnum Uid Pid Ppid C Stime Tty Time Command
^[[m 44960 dsadm 1560578 1568816 0 04:42:47 - 0:00 dsapi_slave 7 6 0
61160 dsadm 1675442 1761442 0 Oct 18 - 0:00 dsapi_slave 7 6 0
61276 dsadm 1314900 1458312 0 04:41:08 - 0:00 dsapi_slave 7 6 0
65198 dsadm 1769702 1745026 0 04:32:29 - 0:00 dsapi_slave 7 6 0
65296 dsadm 1409178 1728522 0 Oct 19 - 0:00 dsapi_slave 7 6 0
44744 dsadm 1462496 1683488 0 Oct 19 - 0:00 dsapi_slave 7 6 0
36694 dsadm 913524 1753272 0 07:34:35 - 0:00 dsapi_slave 7 6 0
~
Thanks in Advance..!
Ravi
Quote:
| Originally Posted by b49P23TIvg Try one of these untested pipelines:
Code:
gawk '$6~/^[A-Z]/ {print "kill -9 " $3}' file | bash
ps -your -funny -arguments | gawk '$6~/^[A-Z]/ {print "kill -9 " $3}' file | bash
When I'm doing this sort of thing I usually test first by putting "echo" just before "kill" |