Search Results

Search: Posts Made By: MJCreations
1,170
Posted By MJCreations
Public key issue
I generated a public key that we are using for ssh and sftp but I noticed that I am still being asked for a password when I run my script. is there something I need to put in my script?

Our linux...
2,798
Posted By MJCreations
the date is the only thing in the file.
the date is the only thing in the file.
1,485
Posted By MJCreations
Password in sftp NOT with key
I've been trying to get out of this, but my manager wont budge.

He wants to sftp files from a server while passing the password in the script. I have said we need to use keys...he said no.
I...
2,798
Posted By MJCreations
Get date, change format and substring?
I'm somewhat new to shell scripting and I have a file that had a date in it.

/somedirectory/datefile.txt

I want to take the date in the file: 2013-06-12
and change the formate to 20130612 and...
936
Posted By MJCreations
Oh I know. I corrected it when I saw it. Its just...
Oh I know. I corrected it when I saw it. Its just still telling me there is an error.
I have awk and sed on my server and its seeing my ftpList.txt as an error
936
Posted By MJCreations
Not working. Still giving me the same error
Not working. Still giving me the same error
936
Posted By MJCreations
that part is working fine though. It does exactly...
that part is working fine though. It does exactly what I want it to do.

The part not working is the awk portion of the code.

Its telling me there is a syntax error

awk -F '{print...
936
Posted By MJCreations
Not looping or creating files
So my script is supposed to repeat for every server in my file, but as of now it is getting stuck on my awk commands

# Read file cred.txt (with one IP per line), connect to servers (one at a...
1,834
Posted By MJCreations
Convert SSH portion to SFTP
I just discovered that my company cant use ssh because they have so wack way of retrieving files without using key-authication.

I need to convert a portion of my script form ssh to sftp.

Here I...
2,260
Posted By MJCreations
I poste a new thread with the main part of the...
I poste a new thread with the main part of the code.
2,260
Posted By MJCreations
Awk: syntax error near my file names
Im currently getting a list of rather odd errors. I've tried everything, but as someone mentioned I prob need to past the code.

i get errors saying

usage: ssh [blah blah
awk: (my file...
2,260
Posted By MJCreations
I tried that. It didn't work. I added spaces,...
I tried that. It didn't work. I added spaces, then removed spaces....nothing made a difference
2,260
Posted By MJCreations
the error message is that this line if...
the error message is that this line

if ["$date_of_file" -gt "$param"] ; then #Compare with the last saved parameter

has an unxpected EOF?
2,260
Posted By MJCreations
Freezes up execution of the script
My script that I wrote is no longer running, but just freezing when I execute it.
Before it was running and showing me where errors were, now when I execute it, nothing happens and i cant type...
2,015
Posted By MJCreations
I have four hostnames. All four are going to be...
I have four hostnames. All four are going to be used in this loop its pulling files from one server, then the next, then the next, and so on till it complete.

This file he wants the names...
2,015
Posted By MJCreations
Sourcing variables from another script
My manager required that i keep the hostnames and username and password in a separate file when creating my sftp script.
(Don't mention passwords and sftp...I've talk to him about this several...
1,653
Posted By MJCreations
How do I source that file is what I am asking?
How do I source that file is what I am asking?
1,653
Posted By MJCreations
Saving variables to a .sh file and last successful run parm.
I had a script that uses a fair number of variables. My manager just let me know that these variables have to be set in one .sh file. How do I do that? I'm use bash shell.

Also At the end of my...
Forum: What is on Your Mind? 06-07-2013
1,015
Posted By MJCreations
Post for tutoring
I was wondering where on Unix.com I can post to ask for an online tutor. I posted in the Jobs section, but I don't know if I will get many people here. I am offering to pay someone for a few hours of...
1,699
Posted By MJCreations
is it possible to go to the server, list the...
is it possible to go to the server, list the files in a directory and then save those file names as a parm,
then in the next part ftp $FILE1, $FILE2, $FILE3 and rename them?
1,699
Posted By MJCreations
Well the client provides us with one file perday,...
Well the client provides us with one file perday, but we aren't running the script everyday. So the control file needs to tell us how many files are on our clients server that need to be pulled.
...
1,699
Posted By MJCreations
FTP scripting issue
I dont have enough bits to post in emergency, but I have an urgent FTP issue. A client of ours wants us to pull files from his server onto our server at which point we can process it. I ask a friend...
Showing results 1 to 22 of 22

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