03-05-2008
Well, I thought and implemented that way only, but feel that its a rough idea.
Thanks again for your great help. Awadhesh
Last edited by Awadhesh; 03-05-2008 at 06:40 AM..
Reason: .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a while read loop that reads files in a directory and process. The files have spaces in between, so I have the IFS=\n to to read the whole line as one file name.
The read works fine but I have a problem with another variable that I set in the beginning of the script. The variable... (1 Reply)
Discussion started by: pvar
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
Ok os heres my situation. I have created a database style program that stores a persons info (name,address,phone number etc.) in a file ("database"). after i read in all the values above, i assign them to a line variable:
line="$name^$address^$phonenum" >> phonebuk
as you can see... (1 Reply)
Discussion started by: djt0506
1 Replies
3. UNIX for Dummies Questions & Answers
How can I set the value for IFS variable (2 Replies)
Discussion started by: mahabunta
2 Replies
4. UNIX for Dummies Questions & Answers
Hi!
I am working in korn shell. I want to reset the dimiliter for the set command to "|" but instead of a command prompt return I am getting something as below
After issuing the command I am getting this....as if the shell is expecting something else. Can anybody suggest what's the problem.
... (2 Replies)
Discussion started by: udiptya
2 Replies
5. Shell Programming and Scripting
Hi,
I have modified the IFS variable in the K shell program and with in the program i want to reset to the default one. How do i reset the same.
e.g
in the begining of the program IFS is default
in the middle i changed it to
IFS="|"
and again i want the default value for the IFS.
... (2 Replies)
Discussion started by: vijaykrc
2 Replies
6. Shell Programming and Scripting
hi i am a learner
can some explain "export IFS=$(echo "\n\t\a")"
i am not able to understand the functionality
please help
thanks
Satya (1 Reply)
Discussion started by: Satyak
1 Replies
7. Shell Programming and Scripting
Whenever i execute the below scriptlet with out proper file name it deletes /tmp directory .
I guess this is because value of variable a didnt get initialized and there for rm -rf /tmp/ get executed and entire /tmp directory get deleted.
How would i avoid any empty variables to be used in... (9 Replies)
Discussion started by: pinga123
9 Replies
8. Shell Programming and Scripting
Hi,
while ; do
echo "Please enter "
read enter
yyyy=${enter:0:4}
mm=${enter:5:2}
dd=${enter:8:2}
result=`validateDate $yyyy $mm $dd`
When does the loop keeping repeating till?? till 1 is equal to 1?
what does this mean "${enter:0:4}" .The 0 and 4 part??
... (3 Replies)
Discussion started by: sid22
3 Replies
9. Shell Programming and Scripting
Hi ,
i am in my initial learning phase of unix. i was going thru the function part.
below is the example which was there but i am not able to understand logic and the use of IFS(internal field separator)
lspath() {
OLDIFS="$IFS"
IFS=:
for DIR in $PATH ; do echo $DIR ; done
IFS="$OLDIFS"... (8 Replies)
Discussion started by: scriptor
8 Replies
10. Shell Programming and Scripting
Ok, so I'm playing around with delimters and reading files. and I came across this behaviour that I thought was a bit odd, regarding how the set command takes values... If I run this: IFS=$'-' #Assigns the - as the default delimiter for bash set I-love-my-gf-a-lot #uses set to put a bunch of... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies
LEARN ABOUT DEBIAN
ctluser
CTLUSER(8) System Manager's Manual CTLUSER(8)
NAME
ctluser - control lusers
SYNOPSIS
ctluser [ -h ] [ -m ] command [ argument... ]
DESCRIPTION
Ctluser sends a message to the control channel of a given luser(8) This command can only be run by the sysadmin(1)
In the normal mode of behavior, the message is sent to the luser's brain, which then performs the requested action and sends back a reply
with a text message and the exit code for ctluser. If the luser's brain successfully performed the command, ctluser will exit with a sta-
tus of zero and print the reply on standard output.
The ``-m'' flag is used to display an MPEG of the results of the given command on the console of the sysadmin(1) Note that this requires
the sysadmin(1) to be running an X server.
To see a command summary, use the ``-h'' flag. If a command is included when ctluser is invoked with the ``-h'' flag, then only the usage
for that command will be given.
The complete list of commands follows. Note that all commands have a fixed number of arguments. If a parameter can be an empty string,
then it is necessary to specify it as two adjacent quotes, like "".
addhist <entry>
Add an entry to the luser's employment record.
allow reason
Allow a luser to use the computer system again. The reason must be the same text given with an earlier ``reject'' command. Note
that this command is currently not implemented.
begin name
Begin a new luser(1) with the given file. Note that this command is currently not implemented.
cancel pid
Causes a process of a luser to be killed
changegroup group
Changes a luser from their current workgroup to the one specified.
checkfile
Forces a user to return to a paper based system
drop Causes a large mass to drop onto the luser from a great height.
flushlogs
Destorys all logs of the actions done by the sysadmin(1) to the luser.
go reason
The luser is fired for the given reason.
hangup Makes the luser hang themselves
mode Displays the operating mode of the luser
newgroup group
Causes a luser to make their own newgroup up
pause thought
Makes the luser pause for the given thought. Note that this may cause some lusers to crash
shutdown reason
Makes the luser shutdown. This is essentially the same as killing them
signal sig
Sends the given signal to the luser
throttle reason
Causes the luser to throttle themselves
trace item flag
Gives the sysadmin(1) information on what the luser is doing.
BUGS
Ctluser sometimes has the effect of lusers complaining the to management. The use of bosskill(8) maybe required at this point.
HISTORY
Written by Simon Burr <simes@tcp.co.uk>. Based upon the manual page for ctlinnd(8), part of the InterNetNews system.
SEE ALSO
luser(1), sysadmin(1), bosskill(8)
19 October 1995 CTLUSER(8)