Search Results

Search: Posts Made By: nck
2,142
Posted By nck
Ah that's right. I forgot about the ^v Thank...
Ah that's right. I forgot about the ^v

Thank you
2,142
Posted By nck
I did notice that instead of 64 spaces it is...
I did notice that instead of 64 spaces it is actually

<?php[tab][40spaces[tab][tab]eval(base64_decode....

How can I match the [tab] with sed. I tried \t and a physical tab key but that didn't...
2,142
Posted By nck
Spacebar, I tried your sed command and it's...
Spacebar,

I tried your sed command and it's close.

I modified as follows to work:
sed '/<?php *.*eval(base64_decode("[a-zA-Z0-9]\{723\}\/[a-zA-Z0-9]\{424\}"));$/d' filename > newfile

I...
2,142
Posted By nck
Removing lines from a file
Hi,

I have a linux server that was hacked and I have a bunch of files that sporadically contain the following lines through out the file:
<?php ...
Forum: SCO 03-22-2010
2,103
Posted By nck
This gives an error: sed: Command garbled:...
This gives an error:

sed: Command garbled: March 22, 2010
Forum: SCO 03-22-2010
2,103
Posted By nck
New line being stripped from sed command
Hi,

I am trying to insert text to the beginning of a text file with 'sed'. Its working however the new line is getting stripped.

I have a variable with the text that I want to insert:
...
8,121
Posted By nck
Execute interactive bash menu script in browser with PHP
I have an interactive menu script written in bash and I would like use PHP to open the interactive bash menu in a browser.

Is this possible?

Using the sytem() function in php runs the script...
7,414
Posted By nck
Thanks for all the response. The '-o...
Thanks for all the response.

The '-o pipefail' is a very nice shell feature I wasn't aware of... good to know.

I think I'm going with binlib's solution, it is pretty clean, simple and should...
7,414
Posted By nck
Well, my purpose for using tee was that I wanted...
Well, my purpose for using tee was that I wanted the output to go to the screen as well as a log file.
7,414
Posted By nck
Getting error return code
I need to try and get the error return code from the tar command when being used as follows:

tar tvf tarfile 2>logfile | tee -f outputfile
ErrorStat="$?"

I would like to save the error return...
1,412
Posted By nck
echo 200910/22-101010 | sed "s/\///"
echo 200910/22-101010 | sed "s/\///"
5,444
Posted By nck
I always thought that the : in the beginning of a...
I always thought that the : in the beginning of a script meant that whatever shell you are in is what the script would use.

I've always found it safer to always specify #!/bin/?shell? at the...
2,285
Posted By nck
That's what I was looking for. My brain was...
That's what I was looking for. My brain was having a lapse this morning.

Thank you
2,285
Posted By nck
redirection and output
I'm redirecting the output of a command to a logfile, however, if the user is on a terminal I would also like the output to be displayed on the screen.

tar tvf some_tarfile >Logfile

if the user...
Forum: SCO 10-22-2009
3,878
Posted By nck
I found that as TA # 126668
I found that as TA # 126668
6,138
Posted By nck
I agree mythel, the biggest pain is some of those...
I agree mythel, the biggest pain is some of those basic commands.

I wrote my scripts using bash, they will work with ksh with minor tweaks.

I've worked around most of the system command...
6,138
Posted By nck
Test for shell interpreter at beginning of script
What would be the best way or method to determine or test for the shell interpreter at the beginning of a script in the event one shell is not available?

If I use the following:
#!/bin/bash
...
5,454
Posted By nck
I know, I am working on it and will post code for...
I know, I am working on it and will post code for help if I can get it close.

I may need to hire someone to help out.
5,454
Posted By nck
PHP Help with Form Submit
Hi,

I have a custom HTML form that has a couple radio buttons and a text field that requires a number.

I'm not a php programmer and could use some help with putting together php code to...
Forum: Programming 02-12-2009
2,022
Posted By nck
Thanks for the quick reply. That works as...
Thanks for the quick reply.

That works as long as 'xinit' is not in any part of the string. I'm tring to also limit the executable from being executed from other locations. i.e. /usr/joe/xinit ...
Forum: Programming 02-12-2009
2,022
Posted By nck
Test command name
I'm very new to C and could use a little help.

I'm testing to make sure the command is running as it's proper name, if not then fail.
if (strcmp(argv[0], "xinit") != 0) {
...
Forum: SCO 01-30-2009
7,915
Posted By nck
I have successfully set them up before on 5.0.7. ...
I have successfully set them up before on 5.0.7.
Here's a link that helped out:

Panchu's thoughts: SATA Tape drive configuration on SCO 5.0.7...
1,604
Posted By nck
Here's a simple example: # tar cvf...
Here's a simple example:

# tar cvf [tar_filename_to_create] [files_to_backup]

i.e.

# tar cvf /tmp/filearchive.tar /usr/data/file1 /usr/data/file1
Showing results 1 to 23 of 23

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