Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: cryptoadm
  • Content: Threads
  • Order by date
  1. cryptoadm

    Domains

    Can I have a DNS server with a domain of system.internal; have a website on a server with a name of example.com; another website on a seperate server with a name of mysite.com. The DNS and web servers will be on a private network 192.168.10 and will have external internet access. The web...
  2. cryptoadm

    Calling function in script

    My script has a number of separate functions and each function needs to be ran from another script. I don't want to put each function into another standalone script which would give me something like eight scripts. example code: #!/usr/bin/perl sub x { print "hello\n"; } sub z { print...
  3. cryptoadm

    OpenSolaris Virtual Network

    I'm using OpenSolaris as the host operating system with Crossbow bits. Dynamic IP. The router is a non-global zone with dhcp on the external nic. The firewall is pfSense in VirtualBox. The web, mail, and dns servers are running FreeBSD in VirtualBoxes. internet -------> virtual router...
  4. cryptoadm

    Multiple matches and replacements

    How would you do a match and replace for multiples in a variable? Example: PATH=$PATH:/home/userx:/usr/X11:.:/usr/sbin:..:/usr::/var:. I need to remove any . and .. and :: in the path and also if any of those 3 characters are at the end of the line they need to be removed. My code works to...
  5. cryptoadm

    Reverse proxy in front of apache

    This probably isn't the right forum and I posted in the linksys forum, however, if anyone can shed any light... My website can be viewed internally but not externally. The setup is as follows: cable modem -> linksys router -> ipf firewall -> nginx reverse proxy -> apache web server ISP...
  6. cryptoadm

    Linksys in front of ipf firewall

    My website can be viewed internally but not externally. The setup is as follows: cable modem -> linksys router -> ipf firewall -> nginx reverse proxy -> apache web server ISP assigned address (62.x.x.x) is on WAN of linksys with LAN of 192.168.1.1 The firewall external is 192.168.1.101 and...
  7. cryptoadm

    Linksys in front of ipf firewall

    My website can be viewed internally but not externally. The setup is as follows: cable modem -> linksys router -> ipf firewall -> nginx reverse proxy -> apache web server ISP assigned address (62.x.x.x) is on WAN of linksys with LAN of 192.168.1.1 The firewall external is 192.168.1.101 and...
  8. cryptoadm

    Equivalent of ksh basename $0

    In Perl what is the equivalent of basename $0 For example: # cat test.sh #!/bin/ksh prog=`basename $0` echo $prog returns: test.sh
  9. cryptoadm

    Perl inline edit

    open (FS, "/etc/vfstab") or die "Can't open /etc/vfstab: $!\n"; while ($line=<FS>) { ($devmnt, $devfsck, $mntpt, $fstype, $fsckpass, $mntboot, $mntopt) = split(/\s+/,$line,7); if ($devmnt =~ /datadg/) { $chardev = substr($devmnt, 0...
  10. cryptoadm

    Printing columns

    #!/usr/bin/perl sub get_alldgs { @alldg_list=(); @alldg_list=`/usr/sbin/vxdisk -o alldgs list 2> /dev/null`; foreach $item (@alldg_list) { my @f = split(" ", $item, 9999); $alldg_device = $f[1]; $alldg_type = $f[2]; $alldg_disk = $f[3]...
  11. cryptoadm

    Return data to html text box

    <div style="position:absolute;left:250;top:50;width:750;height:768;"> <table width=750 height=768 border=0 cellpadding=0 cellspacing=0> <tr valign="top"> <td bgcolor="#1E1E1E"> <iframe name="I1" height="100%" width="100%" src=""> </iframe> </td> </tr>...
  12. cryptoadm

    Socket programming

    I have a server and client program roughly written that will connect on a socket and return output, etc. What I cannot figure out is to execute the server program and have it execute the client program, for example: server-side# ./server.pl client-side# (starts running client.pl when...
  13. cryptoadm

    ksh equivalent

    Out of curiosity what are the Perl equivalents to ksh: $ var=abc/123/def $ echo ${var##*/} def $ echo ${var#*/} 123/def $ echo ${var%%/*} abc $ echo ${var%/*} abc/123
  14. cryptoadm

    Converting from ksh to C

    I've written this in ksh but due to the large number of files (millions) it should be faster in C but unsure how to do things like year=${file:$yearStart:4} though I know I need to use strlen but do I need strcomp for the ${file:$yearStart:4} syntax? And how do you strip off a path like I'm...
  15. cryptoadm

    Windows 7 Beta download

    What a joke. I get an error - and have since they put it out for download - so I can't retrieve it. Go figure. What else do you expect from Microscam?
  16. cryptoadm

    Creating ISO

    I've used Unix for 14 years and have Windows XP home edition with a recovery cd but I need to create an iso image. Is there a Windows person that can tell me how to create a Windows XP iso from a recovery cd?
  17. cryptoadm

    Can this even be done?

    type1:host5:2.6.5-7.282-smp:4:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx VERITAS Storage Foundation Enterprise HA : xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx VERITAS File System type1:host1:2.6.5-7.282-smp:4:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx VERITAS Storage Foundation Enterprise HA...
  18. cryptoadm

    Formatting a header

    host1:Type: Intel host1:Hostname: host1 host1:OS: Linux host2:Type: Intel host2:Hostname: host2 host2:OS: Linux host3:Type: Power host3:Hostname: host3 host3:OS: AIX Partial file looks like above and I want the hostname before the host section and the hostN: gone. Thanks!! For example...
  19. cryptoadm

    Formatting output from lines

    123 xyz abc ade 2324 lmn 689 vms hmn 321 tgh I need to format the output as the second line:first line - for exampe: xyz:123 abc: ade: lmn:2324 vms:689 hmn: tgh:321 Thanks!
  20. cryptoadm

    Print lines above and below regex

    abc = 1234 def = nnnn ghi = XXX jkl = yes abc = 2345 def = nnoo ghi = ZZZ jkl = yes abc = 6789 def = uuuu ghi = XXX jkl = no I have output similar to the above...

Part and Inventory Search

Back
Top