09-19-2012
I am lost -- it is not all described, and yet other stuff is in there. What is the question? How to pad a field to a specific length? Can we assume it fits? Right or left? Just add one space at a time until the lenght is right?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Small query-
I want to do some operation on all the files older then today. Before I do that operation, i want to verify if the command works properly or not.
Surprisingly, the command below returns me file, which are created today -
find /mrk_archive/PG/ftp/incomming/gbs/2008 -type f... (2 Replies)
Discussion started by: kedar.mehta
2 Replies
2. Programming
I'm on a Linux machine and need a program that will display user information as follows: user name, user directory and current date & time.
I think we can compile C, C++ and Perl.
All help is appreciated. (4 Replies)
Discussion started by: flasun
4 Replies
3. Shell Programming and Scripting
I have a start|stop|restart script for a custom app we have. After it tries to stop our process the correct way, it checks to see if it's gone, if not it tries to kill it, if that doesn't work kill -9.
If I run kill -9 on the PID from the command line it kills it and all is well. If I have the... (1 Reply)
Discussion started by: mglenney
1 Replies
4. Shell Programming and Scripting
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Discussion started by: Damon sine
1 Replies
5. Shell Programming and Scripting
Hello, i have a problem with the output from my bash program.
I made this program
#!/bin/bash
BESTANDEN=$* # Plaatst bestanden in de variabele BESTANDEN
TMPFILE=xmlprog.sh.$$.$RANDOM # basisnaam voor tijdelijke bestanden
# controller of het programma correct is aangeroepen
if
then
... (6 Replies)
Discussion started by: dutchspiders
6 Replies
6. UNIX for Advanced & Expert Users
Hello,
I start an adapter using the following command -
nohup ./start_embargoAdapter >/dev/null 2>&1 &
and when I do the following, I can see:
/export/home/xxxxx> ps -ef | grep embargo
xxxxx 28086 20761 0 23:23:29 pts/7 0:00 grep embargo
xxxxx 8866 1 0 Oct 06 ? 0:00... (2 Replies)
Discussion started by: samjna
2 Replies
7. Shell Programming and Scripting
My intention is to log the output to a file as well as it should be displayed on the console > I have used tee ( tee -a ${filename} ) command for this purpose. This is working as expected for first few outputs, after some event loggin nothing is gettting logged in to the file but It is displaying... (3 Replies)
Discussion started by: sanoop
3 Replies
8. Solaris
Some of my admin made some changes on my Solaris-10 box and after that I started getting this wiered issue. I checked path, but not able to figure it out. This is for a non-root user
gcadmin@brbpod06: $ echo $SHELL
/usr/bin/bash
gcadmin@brbpod06: $ bash
bash: brbpod06:: command not found... (2 Replies)
Discussion started by: solaris_1977
2 Replies
9. Shell Programming and Scripting
hello i have search in an old .bash_history and i find this instruction :
xhost `xhost | awk -F: 'NR > 1 {printf ("-%s ", $NF)}'`
someone give me some informations about this instruction?:confused:
thx (2 Replies)
Discussion started by: overflow
2 Replies
10. Homework & Coursework Questions
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Discussion started by: kornfan
2 Replies
LEARN ABOUT NETBSD
field_pad
FORMS(3) BSD Library Functions Manual FORMS(3)
NAME
field_back, field_fore, field_pad, set_field_back, set_field_fore, set_field_pad -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
chtype
field_back(FIELD *field);
chtype
field_fore(FIELD *field);
int
field_pad(FIELD *field);
int
set_field_back(FIELD *field, chtype attribute);
int
set_field_fore(FIELD *field, chtype attribute);
int
set_field_pad(FIELD *field, int pad);
DESCRIPTION
Calling the function field_back() will return the character attributes that will be applied to a field that is not the current field, these
attributes can be set by the set_field_back() function. The field_fore() function returns the character attributes that will be used to
indicate that a field is the currently active one on the form, this attribute may be set by using the set_field_fore() function. The pad
character for a field is the character that will be printed in all field locations not occupied with actual field contents. The pad charac-
ter can be retrieved by calling the field_pad() function, the pad character is set by using the set_field_pad() function.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
error values:
E_OK The function was successful.
SEE ALSO
curses(3), forms(3)
NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD
January 1, 2001 BSD