10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I am trying to removing the old files which were older than 10 days and same g zipping the files using the shell script.
script was return as follows.
find /jboss7_homes/JBOSS7/SKYLIV??/SKYLIV??_CRM/jboss-eap-7.0/standalone/log -mtime +10 -type f | xargs rm -f
find /cer_skyliv??/log... (6 Replies)
Discussion started by: venkat918
6 Replies
2. Shell Programming and Scripting
Hello,
when running the scripts below I am not getting message bb2.
Can you please help?
#!/bin/bash
TLOG=/tmp/bb/amatest.log
FTPRESULTS=/tmp/bb/amlist
export TLOG FTPRESULTS
>$TLOG
>$FTPRESULTS
echo bb1
sftp -oPort=2222 XXXXXXXXXXXXX@sftp.userssedi.com <<EOF
cd... (5 Replies)
Discussion started by: biljana
5 Replies
3. Shell Programming and Scripting
Hi,
In sftp script to get files, I have to rename all the files which I am picking. Rename command does not work here. Is there any way to do this?
I am using #!/bin/ksh
For eg: sftp user@host <<EOF
cd /path
get *.txt
rename *.txt *.txt.done
... (7 Replies)
Discussion started by: jhilmil
7 Replies
4. Shell Programming and Scripting
Hi,
I want to create a script.sh over my local server doing the following:
1- There are files are creating over a directory over my local server "DIR_1".
2- I need to SFTP transfer these files to another Host "HOST_1" by "USER_1"/ "PASS_1".
3- Then Delete the transferred files from my Local... (2 Replies)
Discussion started by: eng_galileo
2 Replies
5. Shell Programming and Scripting
I am trying to use the sed command to remove any character that is passed as a parameter to the script. I may want to replace any character in the file (-, =, $, space). I'm running into an issue when passing the $.
This is a typical row in the file.
"000000B553","--INTERNAL USE... (6 Replies)
Discussion started by: nadneb
6 Replies
6. HP-UX
Hi All,
Following are the problems i am facing.Resolution for these would be highly commendable:
a)I am trying to transfer files from my local C: directory to unix server using sftp.
The problem is coming when files with accent characters are picked for transfer.These files are not... (6 Replies)
Discussion started by: destinykrishan
6 Replies
7. UNIX for Dummies Questions & Answers
Hi Newbie here
I am having problems with automating sFTP transfers.
Just to save time - SCP is not an option as sFTP is stipulated by controllers of far end server.
Ineed to automate sFTP transfer of a single file, once a day to a remote server to which i have no control over.
I am using:... (6 Replies)
Discussion started by: robbien
6 Replies
8. Shell Programming and Scripting
Hi All,
I can log in properly with my sftp handshake with the script, but can not get it to execute the lines of code for get commands within the script. Is there anything special with SFTP we need to do to make this work. I have went and looked on the message board but did not find anything... (3 Replies)
Discussion started by: wsiefkas
3 Replies
9. Shell Programming and Scripting
Dear all
I am bit new to shell scripting . I am implemented autossh between two sun solaris machines , so that when I use sftp it will not ask for the password.
Now I need to make shell script in which I have to transfer files from one server to another server automatically through root... (8 Replies)
Discussion started by: girish.batra
8 Replies
10. UNIX for Advanced & Expert Users
I have a few files on my system named:
-rw-------
-rw-r-----
-rw-rw--w-
-rwxrw-r-x
(Yes, it's really the name of the file, not the access permissions, they're 0 bytes large and all created at the same date/time).
I've no idea how they got there but I don't seem to be able to delete them... (2 Replies)
Discussion started by: rein
2 Replies