Can somebody give me the explanation for this command line:
ps>newfile<infile wc -l
?
I am totally confused with the order of its execution.. :confused:
Thanx,
Saneesh Joseph. (3 Replies)
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
If I have a flat file date.txt separate by a tab
date1 date2 count
20060226 20060225 2
20060227 20060226 2
20060228 20060227 5
20060314 20060228 2
20060315 20060314 1
If $3 (count) is 5 then execute the script testit.ksh with... (13 Replies)
I'm trying to populate a command line into a variable. It appears to be executing, instead. Here's an example:
mycmd=''
if ...; then
$mycmd='sudo '
fi
$mycmd=$mycmd 'sed -i prev s/aaa/bbb/' $myfile
res=`$mycmd`
(I'm also not sure of the best way to execute the command from the... (1 Reply)
How to make it works this way?
echo dir1\/*.txt ; echo dir1\/*.html | xargs wc -l
dir1/*.txt
wc: dir1/*.html: No such file or directory
what i'm trying to do it to "wc dir1/*.txt" and "wc dir1/*.html" (2 Replies)
Hi All,
I need this to execute and not just print on Red Hat ent 4 bash shell.
cat /etc/passwd|grep db2 | awk -F":" '{print "cat /etc/group | grep ",$4}'
Output:
cat /etc/group | grep 1000 (I don't want this to print but execute)
Thanks for any comment you may add. (2 Replies)
HI,
I have a directory called input directory called "input", The "input" directory contains file names (file1,file2,file3,file4), I want to write a command so that it will display all the file names with comma separated.
Desired output: file1,file2,file3 so on....
Regards
Akshay... (2 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
LEARN ABOUT DEBIAN
diskd
diskd(1) General Commands Manual diskd(1)Name
diskd - disk daemon; wait for disk to be inserted
Note
This manpage has been automatically generated from fdutils's texinfo documentation. However, this process is only approximative, and some
items, such as cross-references, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate rep-
resentation in the manpage format. Moreover, only the items specific to each command have been translated, and the general information
about fdutils has been dropped in the manpage version. Thus I strongly advise you to use the original texinfo doc.
* To generate a printable copy from the texinfo doc, run the following commands:
./configure; make dvi; dvips fdutils.dvi
* To generate a HTML copy, run:
./configure; make html
A pre-made HTML can be found at: `http://www.tux.org/pub/knaff/fdutils'
* To generate an info copy (browsable using emacs' info mode), run:
./configure; make info
The texinfo doc looks most pretty when printed or as HTML. Indeed, in the info version certain examples are difficult to read due to the
quoting conventions used in info.
Description
The diskd command has the following syntax:
diskd [-d drive] [-i interval] [-e command]
Diskd waits for a disk to be inserted into a given drive, and then either executes the command or exits. This program can be used to auto-
matically mount a disk as soon as it is inserted.
Warning
This program works by switching the motor on for a very short interval, and then seeking to track -1. This might damage hardware in the
long run. Amigas, which also use these techniques, are known for having problems with their disk drives no longer spinning up properly
after a few month of usage.
Options-d drive
Selects the drive to observe for disk insertion. By default, drive 0 (/dev/fd0) is observed.
-i interval
Selects the polling interval. The interval is given in tenths of seconds. Default is 10 (one second).
-e command
Gives the command to be executed when a disk is inserted. If no command is given the program simply exits. Typically, the command
mounts the disk. It can be a shell scripts which probes for several filesystems and disk geometries until it succeeds.
Bugs
* Automatic unmounting cannot yet be handled. It is indeed not enough to scan for disk removal, because when the disk is removed, it
is already too late: There might be some buffers needing flushing. However, the fdmountd program allows automatic unmounting by
using the SYNC mount options, which switches off write buffering (see section fdmount).
* The drive motor is running all the time, and on some computers, the drive led flickers at each time the drive is polled.
See Also
Fdutils' texinfo doc
fdutils-5.5 03Mar05 diskd(1)