07-24-2015
The log file is correctly created in Machine1 but it have the output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to run a script on a remote server from my ksh script. The issue I'm having is that I need to logon to the remote server as a different user. (see the following)
logged on to server 1 as adsmgr
neet to log on to server 2 as odemgr run passwd_util.ksh
Thanks in advance. (1 Reply)
Discussion started by: whited05
1 Replies
2. Shell Programming and Scripting
I am trying to write a script that would let me run a command in a remote server using ssh.
scriptA: (dcm2nii is a command that only works on the other server)
dcm2nii a b c
scriptB: (I run this one on the current server)
ssh -X otherserver /home/abc/Desktop/scriptA
But when I do ... (2 Replies)
Discussion started by: ZeroGPX
2 Replies
3. Solaris
Hi,
I have username/password for a remote server. I would like to have list of filenames and their size in a particular directory of remote server.
Now Problem is - I can not use rsh command as I can not modify rhost file of remote server.
Thanks in advance.
Sanjay (1 Reply)
Discussion started by: sanjay1979
1 Replies
4. Shell Programming and Scripting
Hi,
I want to run a particular script present in a different server.
At the moment I am trying to run it like this:
(sleep 3; echo $USERID; sleep 1; echo $PASSWORD ; sleep 1 ; sleep 1 ;
echo "nohup perl myscript.pl $* &")| telnet "$server"
But the problem is that once the script has... (6 Replies)
Discussion started by: King Nothing
6 Replies
5. Shell Programming and Scripting
Hi,
I'm having a problem performing for loop on remote server, i know this can be done with one liner but i'm not sure how it works if using logical operator such as for ifs and case or while
for server in sterverA serverB serverC ; do
ssh -v $server "cd ~/MyDocuments/; bag=`find... (6 Replies)
Discussion started by: sexyTrojan
6 Replies
6. Shell Programming and Scripting
Hi. !
When I use the 'NOHUP' along with the '&', the process will be running in the background. Even when I attempt to close (Meaning 'EXIT') the session (say PUTTY in this case), it wont exit unless the process is completed.
But, say when I forcefully terminate the session (SHUT DOWN the... (2 Replies)
Discussion started by: WinBarani
2 Replies
7. Shell Programming and Scripting
why, when i run my shell with sh command it run without problem, but when run with nohup nombreshell.sh $ command not run correctly... values obtained from database are not displayed in the csv file.
My shell do that:
1° data base access with sqlplus:
read_sql_stmt() {
typeset stmt=$1... (3 Replies)
Discussion started by: joaco
3 Replies
8. Shell Programming and Scripting
Hi All,
I need to run a ksh script on around 200 servers(consisting of AIX,LInux,HP-UX,Solaris). The script is there in the /tmp directory of all the servers. I want want to execute the script in background on the respective servers and then exit from there. I have written something like below:... (8 Replies)
Discussion started by: proactiveaditya
8 Replies
9. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
10. Shell Programming and Scripting
Hi,
I'm using expect to ssh into remote machine (i know its not the best practice), and run script "script.sh".
This "script.sh" checks whether an other process (some another script) is running and if not, it runs it as some other user.
#!/bin/bash
/usr/bin/expect << EOD
set... (5 Replies)
Discussion started by: oseri
5 Replies
LEARN ABOUT DEBIAN
jfs_fscklog
jfs_fscklog(8) Extract/Display JFS fsck Log jfs_fscklog(8)
NAME
jfs_fscklog - extract a JFS fsck service log into a file and/or format and display the extracted file
SYNOPSIS
jfs_fscklog [ -d ] [ -e device ] [ -f output.file ] [ -p ] [ -V ]
DESCRIPTION
jfs_fscklog with option -e device extracts the contents of either the most recent or immediately prior (specified with option -p) JFS fsck
service log from the specified device, and writes the output to a file. The file name may be specified with the -f option, or the default
file name is <pwd>fscklog.new. If the -p option is used, the default file name is <pwd>fscklog.old.
jfs_fscklog with option -d formats and displays the contents of the extracted file.
jfs_fscklog with options -d and -e device extracts and displays the JFS fsck service log.
OPTIONS
-d Format and display a previously extracted JFS fsck service log.
-e device
Extract the JFS fsck service log from device and store it in a file. (device is the special file name corresponding to the actual
device from which the fsck log will be extracted (e.g. /dev/hdb1 )).
-f file.name
Specify the file name, overriding the default file name. When used with -e device, file.name specifies the name of the file into
which the JFS fsck log will be extracted. When used with -d, file.name specifies the name of the extracted file whose contents will
be formatted and displayed.
file.name must be 127 characters or less in length.
file.name will be created in the present working directory unless it is fully qualified.
-p Extract the prior log (as opposed to the most recent log).
-V Print version information and exit (regardless of any other chosen options).
EXAMPLES
Extract the most recent JFS fsck log on /dev/hda5 into <pwd>fscklog.new:
jfs_fscklog -e /dev/hda5
Extract the most recent JFS fsck log on /dev/hdb3 into /temp/l9651107.log:
jfs_fscklog -e /dev/hdb3 -f /temp/l9651107.log
Display the JFS fsck log that was extracted into /temp/l9651107.log:
jfs_fscklog -d -f /temp/l9651107.log
Extract and display the previous JFS fsck log from /dev/hda8:
jfs_fscklog -e /dev/hda8 -d -p
REPORTING BUGS
If you find a bug in JFS or jfs_fscklog, please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site:
http://jfs.sourceforge.net/
Please send as much pertinent information as possible, including any jfs_fscklog error messages and the complete output of running jfs_fsck
with the -v option on the JFS device.
SEE ALSO
jfs_fsck(8), jfs_mkfs(8), jfs_tune(8), jfs_logdump(8), jfs_debugfs(8)
AUTHOR
Barry Arndt (barndt@us.ibm.com)
jfs_fscklog is maintained by IBM.
See the JFS project web site for more details:
http://jfs.sourceforge.net/
October 28, 2002 jfs_fscklog(8)