Search Results

Search: Posts Made By: GIC1986
4,385
Posted By GIC1986
use split command to split the file split...
use split command to split the file

split -l 6 /var/tmp/img-bkp1



this will create the xx* file names in the same directory

you can read each one like for i in xx*

do

---...
2,223
Posted By GIC1986
some tips if grep supports -A & -B option ...
some tips if grep supports -A & -B option

tail -f <file name>> |grep -B1 -A2

grep -B1 can be used to get the time stamp from the logs (as displyed abpve) and -A2 to get the 2nd line after...
5,668
Posted By GIC1986
just worth a try ...
just worth a try ...
8,464
Posted By GIC1986
Hi philplasma If am reading correct ...
Hi philplasma

If am reading correct

The following code will check for the file in the home path of the user where the cron is set.


if [ -f *.ftp ]

I think your *.ftp files were in...
7,670
Posted By GIC1986
find /dirB -type f -mtime +3 | xargs -i rm {} ...
find /dirB -type f -mtime +3 | xargs -i rm {}


This will remove the files which is older than 3 days from the dir B
Forum: Solaris 11-20-2009
137,982
Posted By GIC1986
Thanks for the reply jlliagre, Due the...
Thanks for the reply jlliagre,

Due the application urgency we are forced to go for the application (weblogic server restart to kill the connections ) then the connection status went to FIN_WAIT_1...
Forum: Solaris 11-19-2009
137,982
Posted By GIC1986
Jilliagre you are Brillant !!! But now I...
Jilliagre you are Brillant !!!


But now I dont know what to do with this out put i can see the connection but how i will kill (will not kill -9 :) ) /disconnect am not root in the server

I...
Forum: Solaris 11-19-2009
137,982
Posted By GIC1986
How to kill the TCP ESTABLISHED connection in netstat
Hello,


Actually there are some bugs in application which does not close the TCP connection to other server though CORBA.

We need to kill that ESTABLISHED connections as new connection are...
7,825
Posted By GIC1986
Whether the only solution was the schduling the...
Whether the only solution was the schduling the script under the root user??????


Please suggest ...
7,825
Posted By GIC1986
Any one please help .... The setfacl can...
Any one please help ....

The setfacl can make the files move from the path but the problem is it when it was done againg the sftp was failing..


Please help..

Any other alternatives...
Forum: Solaris 12-17-2008
30,069
Posted By GIC1986
Thanks it works.....
Thanks it works.....
Forum: Solaris 12-16-2008
30,069
Posted By GIC1986
How to remove setfacl entires for a file
I gave the permission for a user using

Setfacl as folllows

setfacl -m u:user:rwx,m:rwx /home/master

To a home path of a master user


When i try to remove the same it showing as
...
7,825
Posted By GIC1986
Hi jimbalaya It works but in the following...
Hi jimbalaya

It works but in the following way

the one that you gave makes an entry while checking with getfacl it does not have effective part as

# file: master
# owner: master
# group:...
7,825
Posted By GIC1986
Guys i missed first line in script ...
Guys i missed first line in script

#!/usr/bin/bash

is it cause any problem.....?

And the application user was alredy added as a group of FTP user account

Then the sheel type of this...
7,825
Posted By GIC1986
First of all am not root in the server. I...
First of all am not root in the server.

I am doing the appication related scripts

User login shell was ksh

i am unaware about the umask seeting... sorry

One thing am sure that to...
7,825
Posted By GIC1986
tHE SCRIPT AS FOLLOWS # Location of the...
tHE SCRIPT AS FOLLOWS

# Location of the staging area
app_ROOT=$HOME
STAGING_DIR=$app_ROOT/in_staging

# Time to leave file before moving it (in minutes)
MINUTES_TO_LEAVE_FILE=10

#SFTP/FTP...
7,825
Posted By GIC1986
permission issue to move file
We have a script which will move the files from the each user home directory to other location to process the file in the server.

The users put files in their home directory using FTP and the...
Forum: Solaris 10-14-2008
62,286
Posted By GIC1986
but the sftp was working for me with other user...
but the sftp was working for me with other user on the same machine ....

through port 22

only this user giving the prob.

i suspect about the user:x:8005:508::/export/home/user:/bin/false
...
Forum: Solaris 10-13-2008
18,930
Posted By GIC1986
i think your firwall port 22 is not opened...
i think your firwall port 22 is not opened external to lan.

other wise some NATing probs if ftp working NATing working fine..


some suggections


1) after firing sftp try netstat -an |grep...
Forum: Solaris 10-13-2008
62,286
Posted By GIC1986
# Copyright (c) 2001 by Sun Microsystems, Inc. ...
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)ssh_config 1.2 01/06/06 "
#
# This file provides defaults for ssh(1).
# The values can be changed in...
Forum: Solaris 10-13-2008
62,286
Posted By GIC1986
Hi all please suggest on this .... i need to...
Hi all please suggest on this .... i need to trouble shoot on the issue urgently......
Forum: Solaris 10-13-2008
62,286
Posted By GIC1986
Exit status 255 on sftp
HI guys

When i try SFTP to a machine using a user account whose entry in
/etc/passwd as follows

user:x:8005:508::/export/home/user:/bin/false

and i am not placed my keys over there i...
Forum: Solaris 10-10-2008
18,930
Posted By GIC1986
insted of ftp/sftp you are loggfing into the box...
insted of ftp/sftp you are loggfing into the box using keys

and then you can use what ever command you need.


ssh user@host

i hope u r getting me.. na..
Forum: Solaris 10-10-2008
18,930
Posted By GIC1986
Some of the thoughts in my mind.... I think...
Some of the thoughts in my mind....

I think you can go ahead with ssh connection if the terminal login option available


and use some variables to pass the values

and kill ssh section after...
4,197
Posted By GIC1986
Some ideas i got ..... just try :) 1)...
Some ideas i got ..... just try :)

1) what ever out put you need to append to file you can redirect also

as

print $0 >> "${LASTFILENAME}"

2)otherwise i think you can add some lines...
Showing results 1 to 25 of 41

 
All times are GMT -4. The time now is 07:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy