Hi All,
Has been a while since I was last on, so I hope everyone has been doing fine. ;)
Would like to know if the below IF statement syntax is correct for a ksh environment. It's been pushed into live as someone had deleted the development copy(!); not withstanding that, the statement now... (3 Replies)
Hey guys.
I'm knocking up a script, a part of which will be copying some pretty large files to some remote servers. With the size of the files I need to make sure that they don't lose any data / corrupt on the way (it's unlikely, but these are business critical).
Obviously I could use the... (2 Replies)
Hello
I've created a list with IP address to servers/devices I would like to reboot and have logged the following to the /tmp before:
-netstat -nrv
-/etc/rc2.d/netmask
-/etc/rc2.d/defaultrouter
-ifconfig -a
I would like to confirm that nothing changed after the reboot. I know this can be... (0 Replies)
Guy's
I'm trying to create script to execute some critical commands in AIX
like the below ...
stopsrc -s qdaemon
stopsrc -s sshd
stopsrc -s lpd
stopsrc -s nfsd
I want between each command to ask me like this
" are you sure to stop qdaemon "
" are you sure to stop ssh"
" are... (3 Replies)
continuing from my previous post, whose link is given below as a reference
https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569
consider there is create table commands in a file for eg:
CREATE TABLE `Blahblahblah` (
`id` int(11) NOT NULL... (2 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
so i have scripts that get run in ways similar to this:
cat script.pl | perl - $1 $2 $3
cat script.rb | ruby - $1 $ 2 $3
my question is, how can i verify that that the "perl" or "ruby" or "python" tool being run on the box is actually a legit tool? meaning, someone may move the tool from... (2 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)