Search Results

Search: Posts Made By: markdjones82
11,715
Posted By markdjones82
Sed find exact string and delete line with variable
All,
I am trying to read in a variable and search a file then delete based on that string, but i want to match exact word.

This works but it matches all, i don't want to match anthing that...
4,386
Posted By markdjones82
NFS4 locking file question
All,
Just wondering if someone has a file open on client A for writing and it is locked, is that file still readable from client A or B?

Basically I'm just wanting to know if a file is opened...
2,185
Posted By markdjones82
Thanks, I figured I could do it with the for loop...
Thanks, I figured I could do it with the for loop I was just wondering if I could some how do it with the find -exec mv command
2,185
Posted By markdjones82
Thanks, I guess "expansion" is what confused me...
Thanks, I guess "expansion" is what confused me as I don't equate expansion with removal. So really, you aren't expanding, but deleting.
2,185
Posted By markdjones82
Removal of file extension question
All,
I know that this will remove a file extension from a file name, but reading on the documentation on how it works confuses me.
${filename%.*}Can anyone explain what exactly is going on here? ...
973
Posted By markdjones82
Find command help
All,
I'm reading around and getting confused on how to exclude directories on a find command.

So, what I want is a find command that can find a file with a name and exclude certain directories....
1,163
Posted By markdjones82
I wanted the filenames and the results, but since...
I wanted the filenames and the results, but since my command works i'm not going to worry about it
1,163
Posted By markdjones82
Grep question
All,
I am wanting to find out if I can do this in one grep statement
grep -R failed * |grep -iEw 'Mar 1|Feb 2'


I want to search all files in a directory for the text "failed" AND a "date or...
11,674
Posted By markdjones82
I tried that earlier and it didn't work, but then...
I tried that earlier and it didn't work, but then I noticed that my expect for the password prompt was different.

I fixed that and also added the escape character and it worked!

Thanks Corona....
11,674
Posted By markdjones82
Expect Script sending password with $ and symbols
All,
I am trying to use expect to send SFTP password because I am unable to share a key with the vendor.

They gave me a password that uses some symbols in it like $ and !

When i try to use...
2,311
Posted By markdjones82
Jim, sorry I shouldn't have used **** I was just...
Jim, sorry I shouldn't have used **** I was just using that as a comment out for the rest of the characters of the file name. It is something like CQ12345 and the other file is CT12345. My SFTP...
2,311
Posted By markdjones82
Does 2 scripts running at same use a variable with same name conflict?
All,
I have a Bash SFTP script that I run and before I would hardcode the file name.

I recently decided to put the filename in a variable called $FILENAME.

I had 2 scripts that run at the...
10,185
Posted By markdjones82
Thanks sir, I think that is what I was looking...
Thanks sir, I think that is what I was looking for.

So, if I only wanted it to mail on the first iteration is that possible? The sleep is that in seconds?

I also want to be able to send the...
10,185
Posted By markdjones82
Script check for file, alert if not there, and continue checking until file arrives
All,
Is there a way to keep checking for a file over and over again in the same script for an interval of time?

Ie

If [no file] {
mail -user
continue checking until file arrives
...
Forum: IP Networking 06-15-2010
3,899
Posted By markdjones82
Duke, I am going to be using RHEL 5.4 I...
Duke, I am going to be using RHEL 5.4

I want to have a VIP and 1 interface on each server.

If the interface on 1 goes down the second server will take over the VIP
Forum: IP Networking 06-14-2010
3,899
Posted By markdjones82
IP failover needed
All,
I am looking to setup a simple IP failover setup, but it seems every place i look has some difficult setup like pacemaker or LVS.

I only want to handle the IP piece to failover a VIP.
...
2,659
Posted By markdjones82
Remote command output to file comma delimited
All,
I am trying to run a command that will get the serial number, model, and hostname of a server and then output the 3 fields comma delimited.

Then a new line to separate the 3 fields for...
14,302
Posted By markdjones82
Ah, see I didn't mean for him to put that in the...
Ah, see I didn't mean for him to put that in the script. I figured he would run that separately and just place the encrypted password in the file
14,302
Posted By markdjones82
Try using the perl crypt command if yo uahve perl...
Try using the perl crypt command if yo uahve perl installed:

perl -e 'print crypt("password", "salt"),"\n"'
6,405
Posted By markdjones82
Yeah these people are picky and would only want...
Yeah these people are picky and would only want to be emailed IF any of the iterations failed. I don't want to email the log on each iteration though.

I think i am going to make a variable in the...
6,405
Posted By markdjones82
For loop scp transfers check if all iterations successful
All,
I am using a for loop to SCP a bunch of files in a directory. I am having it then drop a .ready file name. Is there a way to check for the success of all iterations and then email upon fail...
3,667
Posted By markdjones82
Yeah, these receive files and all that, but it...
Yeah, these receive files and all that, but it also serves as a transfer device itself.

Guess I'll just do the good ol' manual process if ever needed

Thanks for the help though
3,667
Posted By markdjones82
Corona, the setup would be 2 load balanced...
Corona,
the setup would be 2 load balanced SFTP servers. The scripts are actually push scripts to send to different locations. I would have the data mounted on a cifs share so that both could...
3,667
Posted By markdjones82
All, I guess what i'm looking for is if...
All,
I guess what i'm looking for is if somehow the server went down from the network or powered off, the other server would be able to load the cron file and take over the cron jobs.

Any ideas?
3,667
Posted By markdjones82
Failed over crontab?
All,
I am working on planning a redundant SFTP setup and some jobs are ran using cron jobs. Would there be a way to some how failover a crontab to another server?
Showing results 1 to 25 of 80

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