hi,
I am new ot unix. So, can i write a shell(c shell or korn shell) program to access internet? I mean if I run the program, it can access specified url and then copy the html to a file? Can anyone help me? And how can make the program runs every 1 hr?
new comer (2 Replies)
Hi All,
I want to execute some commands on unix machine from the mac machne. I have two options for doing so, I am confused which is the best way of doing. Here are two options.
Requirement:
Execute command on the remote server machine. Commands to be executed itself contain arguments to be... (0 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)
Hello all,
I have just started doing shell scripting.
I want to read a file which stores the status of my job I have submitted
on a cluster.
The file looks something like this :
========================FILE=============================
crab: Checking the status of all jobs: please wait... (4 Replies)
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
I need two solutions
1) How can i swap the first and last character in each line of file temp
2) How can i display content of the file using sed command
Please help (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 SUSE
blogd
BLOGD(8) The SuSE boot concept BLOGD(8)NAME
blogd - boot logging on /dev/console
SYNOPSIS
/sbin/blogd [/dev/realtty]
DESCRIPTION
Without argument blogd determines the real underlying character device of /dev/console. blogd spawns a pty/tty pair to reconnect the cur-
rent /dev/console with the slave of the pty/tty pair. During writing information from this slave to the real character device a ring buffer
is used to hold the information for writing it to an existing logging file.
To fetch the real tty of /dev/console the program showconsole(8) can be used. This has the advantage that blogd will not hold the real
character device of /dev/console as its controlling tty (would hangup any running getty on that character device).
SIGNALS
blogd knows a few signal to contol its behavior.
SIGQUIT, SIGINT, and SIGTERM
will cause blogd tries to write out the ring buffer and to exit.
SIGIO says blogd that now it is able to write on /var/log/boot.msg which means that the file system is mounted read/write and the kernel
messages are written to that file.
SIGSYS says blogd that it should stop writing to disk but continue to repeat messages to the old devices of the system console.
BUGS
blogd needs a mounted /proc and /dev/pts file system and tries to set the controlling tty to stdin if the real character device of
/dev/console is not given. After reading /proc blogd tries to restore the status of the controlling tty to avoid problems with getty pro-
cesses. This can fail because blogd forks to run in the background as a daemon.
FILES
/proc/<pid of blogd>/stat
the stat file of the blogd process.
/dev/console
the system console.
/var/log/boot.msg
logging file which is created by klogd(8) or dmesg(8).
SEE ALSO showconsole(8), syslogd(8), klogd(8), dmesg(8), proc(5).
COPYRIGHT
2000 Werner Fink, 2000 SuSE GmbH Nuernberg, Germany.
AUTHOR
Werner Fink <werner@suse.de>
3rd Berkeley Distribution Nov 10, 2000 BLOGD(8)