10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)
Discussion started by: mirwasim
11 Replies
2. Shell Programming and Scripting
Hello Unix gurus,
I have a file with this format (example values):
label1 1 0
label2 1 0
label3 0.4 0.6
label4 0.5 0.5
label5 0.1 0.9
label6 0.9 0.1
in which:
column 1 is a row label
column 2 and 3 are values
I would like to do a simple operation on this table and get the... (8 Replies)
Discussion started by: ksennin
8 Replies
3. Shell Programming and Scripting
`awk` function looks like this in a file name `fun.awk`:
{
print small()
}
function small()
{
a=$0
smal=0
for(i=1;i<=3;i++)
{
if( a<a)
smal=a
else (4 Replies)
Discussion started by: lazerz
4 Replies
4. UNIX for Dummies Questions & Answers
I am trying to move files which donot have same filename using
find /Users/ParijatMac/desktop/unix/new_dir -type f -mmin +"$HRS" -exec mv -n "{}" /Users/ParijatMac/desktop/unix/old_dir \; -print
but i am getting all filenames including the ones with duplicate names.Please help me to sort... (5 Replies)
Discussion started by: parijat guh
5 Replies
5. Shell Programming and Scripting
I have a result like this
root@server # grep -rl maldet /etc/cron*
/etc/cron.d/maldet_daily
/etc/cron.d/malcron
/etc/cron.d/malcrondaily
/etc/cron.d/malcronweekly
What I need is, I need an if/else condition such that, if there is any output other than /etc/cron.d/maldet_daily in the... (8 Replies)
Discussion started by: anil510
8 Replies
6. Shell Programming and Scripting
Hi all,
Say I have a script named script.sh. What it does is to print a line like "abc"
#! /usr/bin/ksh
print "abc"
I would like to pass this value to an external variable,
var1="script.sh"
However when I echo $var1 I got "script.sh" itself instead of the result?
Thanks (3 Replies)
Discussion started by: isaacniu
3 Replies
7. Shell Programming and Scripting
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can help me... (3 Replies)
Discussion started by: fw0037
3 Replies
8. Shell Programming and Scripting
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can... (1 Reply)
Discussion started by: fw0037
1 Replies
9. Homework & Coursework Questions
there is a directory /data/users/osa/psidp/dmp/files/cimdir ,it have some subdirectories ,and also the subdirectoriy have it's subdirectoriis.
I want to get all the leaf nodes of the directory path .
but the result of the script is wrong ,how can i get the right result
somebody who can help... (1 Reply)
Discussion started by: fw0037
1 Replies
10. Shell Programming and Scripting
i got a data file which contains all the pid,ppid,user,command,pcpu,start_time,status. I wanted to display out the pcpu which is greater than 0.
i uses awk'{if($5 > 0){print}}' filename.txt but is printing out result which not i wanted. Is there any way which i can print out those pcpu which is... (8 Replies)
Discussion started by: thms_sum
8 Replies
DtPrintResetConnection(library call) DtPrintResetConnection(library call)
NAME
DtPrintResetConnection -- resets the print display connection managed by a DtPrintSetupBox
SYNOPSIS
#include <Print.h>
XtEnum DtPrintResetConnection(
Widget wid,
DtPrintResetConnectionMode mode);
DESCRIPTION
The DtPrintResetConnection function is a convenience function provided by the DtPrintSetupBox widget that allows applications to direct the
widget to stop managing the X print server connection. A mode parameter is included in order to direct the widget to close the print con-
nection by calling XpDestroyPrintContext and XCloseDisplay or to simply relinquish control of the connection without closing it.
DtPrintResetConnection is intended to be used by applications that fork a child process to perform the print rendering operation. Immedi-
ately after the fork is performed, the parent process will close its X print server connection, and retain its connection to the video X
server. The forked child on the other hand will close its video X server connection and perform the rendering operation on the X print
server connection.
ARGUMENTS
wid The DtPrintSetupBox widget ID.
mode Indicates whether DtPrintResetConnection should close the X print server connection, or simply cause the DtPrintSetupBox to cease
managing the connection.
Valid values are:
DtPRINT_CLOSE_CONNECTION
Set by the parent process when the application forks a child to perform the print rendering. This will cause the
DtNclosePrintDisplayCallback list set for the passed DtPrintSetupBox to be called.
DtPRINT_RELEASE_CONNECTION
Set when the application wishes to destroy the DtPrintSetupBox widget instance and still perform print rendering using
the X print server connection initiated by the widget. For example, the child process of an application that forks to
perform print rendering will close the video display connection (thereby destroying the DtPrintSetupBox widget) prior
to print rendering. No DtPrintSetupBox callbacks will be called as a result of this operation.
RETURN VALUE
DtPRINT_SUCCESS
DtPrintResetConnection was successful.
DtPRINT_NO_CONNECTION
An open X print server connection is not currently being managed by the DtPrintSetupBox.
DtPRINT_BAD_PARM
The value passed for wid is NULL, or an invalid mode was passed.
ENVIRONMENT VARIABLES
None.
RESOURCES
None.
ACTIONS
/MESSAGES
None.
ERRORS
/WARNINGS
None.
EXAMPLES
None.
FILES
None.
SEE ALSO
DtPrintSetupBox(3)
DtPrintResetConnection(library call)