Im trying to print /etc/passwd with a variable connecting to /etc group/
But when im trying to print the output, /etc/group is printing also. Can i ask for help on what command to use
so it will ignore /etc/group and only print /etc/passwd.
here's the sample script. pages number and the /10 entry line pages should be used also.
I have a script that askes users to enter in an oracle account and password, The information is displayed on the screen as they type it. Does anyone know how I can hide this output?
:confused: (1 Reply)
I am trying to have a script ping all the clients then output it to a file so I know which clients are off then have the next script pull the ones that are online and reboot them.
This is what I am running with right now. If there is something KISS then by all means please let me know.
... (3 Replies)
hi
i m trying to print the permissions for a file in output
echo name
read name
touch name.txt
permission=$((ls -l $name.txt))
echo permission
please suggest where i went wrong? (2 Replies)
Hi Expert,
I want to print CPU and Memory utilization into a text file. I am using "prstat -Z" to see the output on screen. When I run below command
prstat -Z | grep httpd | awk '{print$3} '>> output.txt
but it is not printing to file. Also I want to be below header on output
PID USERNAME ... (6 Replies)
I have n files and I am using cat to combine them in to one.
Before that simply add the name of the output file to 4th column and then print the output. Is it possible ?
input1
chr start end name 0 + key
input2
chr start end name 0 + key
inputn... (1 Reply)
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Hi All,
I have written one script, which is connecting 3 diffrent servers and executing script placed on those.
It is smthing like:
spawn ssh user@server1
expect "*? assword:"
send "pw \r"
expect "$"
send " sh ./filename1 \r"
expect "$"
expect eof
spawn ssh user@server2
expect "*?... (7 Replies)
Hi,
I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql
To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
I have a python script that gives output called test.png. By using the following command I run the script every 2 seconds. What is the easiest way to save the output as follows ( test.png (1st output), tes1.png (second output), tes2.png ....)
Command I i use
while sleep 2; do python... (1 Reply)
Discussion started by: quincyjones
1 Replies
LEARN ABOUT REDHAT
directomatic
DIRECTOMATIC(1) General Commands Manual DIRECTOMATIC(1)NAME
directomatic - Print without spooler
SYNOPSIS
directomatic -P <printdef> [-J jobtitle] [-o option=value [...]] [file]
DESCRIPTION
Directomatic is a filter script to print with free software printer drivers without the need of a print spooler. It is designed to be used
together with a Foomatic printer definition file.
Options
-P <printdef>
where printdef is the printer definition file to use.
-J <jobtitle>
where job title will be printed in the head line of every page of a plain text job.
-o option=value
Set an arbitrary option.
file The file to print.
Commands
Directomatic will print from standard input unless a file to print is specified on the command line. If your printer definition file is in
/etc/foomatic/direct or ~/.foomatic/direct you do not need to specify its path. Put a (instructions in the file) to redirect the output of
directomatic to your printer instead of standard output. To make normal users able to print this way add them to group lp and make sure the
appropriate printer device file /dev/lpX is group-writable.
See http://www.linuxprinting.org/direct-doc.html
FILES
/etc/foomatic/direct/<queue>
The foomatic printer definition file.
EXIT STATUS
directomatic returns 0 unless something unexpected happens.
AUTHOR
Manfred Wassmann <manolo@NCC-1701.B.Shuttle.de> for the foomatic project using output from the associated binary.
BUGS
None so far.
Foomatic Project 2001-05-07 DIRECTOMATIC(1)