12-10-2008
Quote:
Originally Posted by
pmrajesh21
I have a script name as psin_install_i3fp.sh
What this step2 represents?
and also tell me the below line represnts:
mv ./psin_start_ba.sh ./infra/bin/psin_start_ba_moved.sh >> /dev/null 2>&1
The step2 represents nothing, as it is not parsed anywhere in the script you provided.
The command you asked for moves a file (see man mv for details), any output from that command is redirected to /dev/null (unix' black hole). Actually the redirection done with ,,>>'' is meaningless, single ,,>'' would suffice and do exactly the same in this case.
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Would like to ask the experts if anyone knows how to run a script like this:
dtterm -title shell1
run process1 on shell1
dtterm -title shell2
run process2 on shell2
cheers!
p/s: sorry if i used the wrong forum, quite concussed after watching world cup for several nights; but I... (2 Replies)
Discussion started by: mochi
2 Replies
2. Shell Programming and Scripting
I have to use shell script to run series of commands on another unix box by connecting through SSH and giving user credentials. For running commands on remote machine I have to use options reading from a local file.
Process:
Connecting to remote unix server <host1.ibm.com> through ssh
Login: ... (2 Replies)
Discussion started by: itsprout
2 Replies
3. UNIX for Dummies Questions & Answers
Hi guys i have written a script which takes the options given to him and execute itself accordingly.
for example
if a script name is doctortux then executing doctortux without option should made doctortux to be executed in automatic mode i.e. doctortux -a
or if a doctortux is needed to run in... (4 Replies)
Discussion started by: pinga123
4 Replies
4. AIX
In my cronjob, I would like to schedule my script.sh to run every minutes. I crontab -e and have in line below but it didn't seems to run at all.
* * * * * script.sh
When I run it manually, I can run it. Is that anything wrong with the above line?
If I change it to something like below,... (4 Replies)
Discussion started by: ngaisteve1
4 Replies
5. Shell Programming and Scripting
Hello everyone,
I have a perl script which takes various command line options from user like :
test.pl -i <input_file> -o <output_file> -d <value> -c <value>
Now I have multiple input files in a directory:
<input_file_1>
<input_file_2>
<input_file_3>
<input_file_4>
.....
....
...... (6 Replies)
Discussion started by: ad23
6 Replies
6. Shell Programming and Scripting
how to run an already developed script run against a list of ip addresses solaris 8 question.
the script goes away and check traffic information, for example
check_GE-VLANStats-P3 1.1.1.1
and returns the results ok.
how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)
Discussion started by: llcooljatt
26 Replies
7. Shell Programming and Scripting
Hello all,
I'm trying to write a script to gather and send data and it works just fine at the bash command line, but when executing from CRON, it does not run properly.
My scripting skills are pretty limited and there's probably a better way, but as I said it works at the command line, but... (12 Replies)
Discussion started by: rusman
12 Replies
8. Shell Programming and Scripting
Linux System having all Perl, Python, PHP (and Ruby) installed
From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file
eg
eg
a Shell script run in a case statement call to run a php file, also Perl or/and Python file???
Like
#!/usr/bin/bash
....
....
case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
LEARN ABOUT PLAN9
consolefs
CONSOLEFS(4) Kernel Interfaces Manual CONSOLEFS(4)
NAME
consolefs, C - file system for console access
SYNOPSIS
aux/consolefs name dev [ name dev ... ]
C system
DESCRIPTION
To ease administration of multiple machines one might attach many serial console lines to a single computer. Consolefs is a file system
that lets multiple users simultaneously access these console lines. Each name/dev pair represents the name of a console and the serial
line device associated with it. Consolefs presents a single level directory with two files per console: name and namectl. Writes of name
are equivalent to writes of dev and reads and writes of namectl are equivalent to reads and writes of devctl. Consolefs broadcasts any-
thing it reads from dev to all readers of name. Therefore, many users can con(1) to a name, see all console output, and enter commands to
the console.
To keep users from inadvertently interfering with one another, notification is broadcast to all readers whenever a user opens or closes
name. For example, if user boris opens a console that users vlad and barney have already opened, all will read the message:
[+boris, vlad, barney]
If vlad then closes, boris and barney will read:
[-vlad, boris, barney]
Consolefs posts the client end of its 9P channel in /srv/consolefs; mount (see bind(1)) this file to see the consoles. An example of 2
consoles complete with console logging is:
% aux/consolefs bootes /dev/eia0 fornax /dev/eia1
% mount /srv/consoles /mnt/consoles
% ls -p /mnt/consoles
bootes
bootesctl
fornax
fornaxctl
% cat /mnt/consoles/fornax >> /sys/log/fornax &
% cat /mnt/consoles/bootes >> /sys/log/bootes &
The rc(1) script C automates this procedure. It uses import(4) to connect to /mnt/consoles on the machine connected to all the consoles,
then uses con(1) to connect to the console of the machine system. The script must be edited at installation by the local administration to
identify the system that holds /mnt/consoles.
FILES
/srv/consoles
Client end of pipe to server.
SOURCE
/sys/src/cmd/aux/consolefs.l
/rc/bin/C
CONSOLEFS(4)