Search Results

Search: Posts Made By: Hangman2
2,055
Posted By Hangman2
copying the dir/subdir structure from one server to another?
Hi All,
I want to copy the dir/subdir structure from SERVER-A to SERVER-B without copying all the files in each dir.

Is it possible using SCP / SFTP command?

For example,

SERVER-A has...
12,050
Posted By Hangman2
how do i execute nohup and background job inside the korn script for db2
load_cursor_stmt()
{
ls /db/admin/ddl/rmn01000/load_cursor*.sql|while read file
do
echo "${file}"
`nohup db2 -tvf "$file" \&`
done
}Error:
-------

...
2,194
Posted By Hangman2
Hi All, Thanks for all your comments and...
Hi All,
Thanks for all your comments and good info. I sent an email to our AIX Admin and he probably unmounted the file system and mounted again and everything is working fine. He did not tell...
2,194
Posted By Hangman2
This is a sandbox and Informatica was shut down...
This is a sandbox and Informatica was shut down normally.

I have to check with my UNIX Admin to see if backup was done or not.

When I issue the command: ps, then the I see a process if for my...
2,194
Posted By Hangman2
Hi All, Thanks for your replies. I will try...
Hi All,
Thanks for your replies. I will try to post the answer to questions posed by various folks.

This is on AIX V5.3. There is a subdir called PowerCenter in main file system...
2,194
Posted By Hangman2
Not able to delete a dir !!!
Hi All,
One of the dir has a subdir in it. Subdir has no files in it. I verified it using ls -la command.

When I try to remove this subdir, it says that this directory is not empty.

:wall:...
74,674
Posted By Hangman2
:b: Works like a charm....... Thanks...
:b:

Works like a charm.......

Thanks in2nix4life. Now I know why I did not get "A" grades. :)
74,674
Posted By Hangman2
Yes I agree if I use put file1 file1_old ...
Yes I agree if I use

put file1 file1_old

then it will copy file1 from current server to file1_old on remote server.

What I am trying to accomplish is if file1_old exists on remote server...
74,674
Posted By Hangman2
Renaming a file while using SFTP
Hi All,
I have a script which works perfectly for using SFTP commands.

I use SFTP -b batchfile remoteuser@remoteserver.

This batch file contains a command

cd /dir1
put file1

I am...
27,185
Posted By Hangman2
I have executed following commands separately. ...
I have executed following commands separately.

find . -type f -ctime +30 -ls -exec rm -r {} \;

find . -type f -size +1000MB -print -exec rm -r {} \;

---------- Post updated at 04:08 PM...
1,287
Posted By Hangman2
You can buy any laptop and install ubuntu or...
You can buy any laptop and install ubuntu or redhat linux as a dual boot OS.

If you have other needs with this laptop, keep those in mind. For example playing games, practicing other software etc
27,185
Posted By Hangman2
How do I find files which are older than 30 days and greater than 1GB
Hi All,
I know the separate commands for finding files greater than 30 days and finding files greater than 1GB.

How do I combine these two commands?

Meaning how do I find files which are...
68,186
Posted By Hangman2
Possible problem found
Hi All,
Thanks to everyone who contributed.

I tried to do an SSH and found that it is prompting that password has expired and needs to be changed again.

I changed password of that user...
68,186
Posted By Hangman2
HERE ARE ADDITIONAL DEBUG STATEMENTS ...
HERE ARE ADDITIONAL DEBUG STATEMENTS
=======================================================================================================


==> sftp -vvv USER2@REMOTE_SERVER2
OpenSSH_5.4p1,...
68,186
Posted By Hangman2
On both servers, OS is AIS and shell is korn...
On both servers, OS is AIS and shell is korn shell.
68,186
Posted By Hangman2
It is not asking for any password. Usually...
It is not asking for any password.

Usually when I say SFTP USER@SERVER then I go into the SFTP prompt and from there I can get/put any file.

So SFTP prompt is not coming. Yes I also saw the...
68,186
Posted By Hangman2
On the remote server, permissions on home dir is...
On the remote server, permissions on home dir is 755 and $HOME/.ssh dir is 700.

---------- Post updated at 02:25 PM ---------- Previous update was at 09:56 AM ----------


Any ideas????
...
68,186
Posted By Hangman2
SFTP Issue - Connection closed
Hi All,
I have followed the steps to set up the public and private keys for SFTP setup. Somehow the SFTP is not working and I get following errors:


==> sftp -v...
22,919
Posted By Hangman2
Is there a way to replace all characters more...
Is there a way to replace all characters more than ASCII 128 to a space??
22,919
Posted By Hangman2
Did you mean this? tr '\001' ^A < temp1.xml...
Did you mean this?

tr '\001' ^A < temp1.xml > temp3.xml
22,919
Posted By Hangman2
How do I replace a unicode character using sed
I have a unicode character {Unicode: 0x1C} in my file and I need to replace it with a blank. How would a sed command look like?

cat file1 | sed "s/&#x28;//g;" > file2

Is X28 the right value for...
2,037
Posted By Hangman2
This had worked perfectly. Thanks a lot again.
This had worked perfectly. Thanks a lot again.
2,037
Posted By Hangman2
This works in a while loop. So my question...
This works in a while loop.

So my question is that if there are 10 files, it logs into the remote server 10 times.

So can the looping be made such that it connects to the server by SFTP ONCE...
2,037
Posted By Hangman2
Arrays in Shell Scripts
I have defined an array like this:


set -A MYARRAY

MYARRAY[0]=file1
MYARRAY[1]=file2
MYARRAY[2]=file3
MYARRAY[3]=file4

i=0
while [[ $i < ${#MYARRAY[@]} ]]
do
...
1,717
Posted By Hangman2
We don't have GNU date. We have AIX as OS. ...
We don't have GNU date. We have AIX as OS.

deleting on mtime or atime would have been easiest, but there are some files which may have been copied today for some processing but their date created...
Showing results 1 to 25 of 62

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