Chuyện của sys

DevOps Blog

How to Setup E-Mail Definition Maintenance in QAD .Net UI with Unix/Linux Servers June 27, 2014

Part 1: Go to E-Mail Definition Maintenance (36.4.20, mgemmt.p)

 

  1. E-Mail Definition – choose a value, such as a group, user name, etc.
  2. Operating System – UNIX (Windows Server require a different set up).
  3. Start Effective – 01/01/00, leave End Effective blank.  (this can be set to date(s) desired)
  4. Hit Next.
  5. Description – choose a description for this e-mail definition.
  6. Path and Program Name – enter the path to the e-mail program (in this example we are using mailx, using which in Linux we can determine the patch to the mailx executable as /bin/mailx).
  7. Command Line Parameters – this is used to format the output sequence to the mail program being used, see screenshot below for settings using Linux mailx.
  8. Start Effective – 01/01/00, leave End Effective blank. (again, this can be set to date(s) desired).
  9. E-Mail Command – this line is automatically formatted based on the Command Line Parameters, this can be used to verify the syntax of the e-mail sequence is correct.
  10. Click Next, a prompt will appear “Send Test E-Mail Message Now?”, click NO
    Image

Part 2: Go to User Maintenance (36.3.1, mgurmt.p), and open a desired user.

 

  1. Add a valid definition to E-Mail Def (in this example it is simply called email).
  2. Enter a valid e-mail address for the user in E-Mail Address.

Image

Part 3: Go to Printer Setup Maintenance (36.13.2, mgmgmt05.p), now a record needs to be created for the e-mail system.

 

  1. Set Output To to ‘Email’.
  2. Destination Type, click the look up and select ‘Email’.
  3. Finish creating the record with all other fields to defaults (blank).

Image

 

 

 

Part 4: Go to E-Mail Definition Maintenance (36.4.20, mgemmt.p).

 

  1. Bring up the setup defined in Step 1.
  2. Click Next, a prompt will appear “Send Test E-Mail Message Now?”, click YES.
  3. This will generate a test e-mail to the recipient(s) defined with the e-mail addresses that were defined in the above steps.

Environment/Conditions:

QAD 2011 SE

QAD .Net UI 2.9.4

Progress OpenEdge 10.2B05

Red Hat Linux

 

 

 

1 Comment on How to Setup E-Mail Definition Maintenance in QAD .Net UI with Unix/Linux Servers
Categories: Uncategorized

Trước và Sau June 25, 2014

No Comments on Trước và Sau
Categories: Uncategorized

Active windows server 2003 June 19, 2014

  1. Start –> Run ( Windows + R) để mở hộp thoại run, gõ regedit

Hộp thoại Registry Editor.

  1. Tìm tới registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents

  1. Click phải vào string value OOBETimer, chọn Modify, đổi giá trị thành: FF D5 71 D6 8B 6A 8D 6F D5 33 93 FD. Chọn OK.
  2. Click phải vào WPAEvents, chọn Permissons, click Advanced
  3. Bỏ check ở ô Inherit from parent the permission entries that apply to child objects. Include these entries explicitly defined here. Click Apply, sau đó chọn COPY.
  4. Chọn dòng SYSTEM, Edit, chọn Deny option to ban all users from accesing and editing the key, click OK.
  5. Reboot
  6. Kiểm tra lại: Mở Run, gõ oobe/msoobe /a

 

 

No Comments on Active windows server 2003
Categories: Uncategorized

See what process is using a TCP/UDP port in Windows Server 2008 June 18, 2014

Try to using netstat for WS 2008 😀

 

Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Used without parameters, netstat displays active TCP connections.
Syntax
netstat [-a] [-e] [-n] [-o] [-p Protocol] [-r] [-s] [Interval]
Parameters
-a : Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.
-e : Displays Ethernet statistics, such as the number of bytes and packets sent and received. This parameter can be combined with -s.
-n : Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names.
-o : Displays active TCP connections and includes the process ID (PID) for each connection. You can find the application based on the PID on the Processes tab in Windows Task Manager. This parameter can be combined with -a, -n, and -p.
-p Protocol : Shows connections for the protocol specified by Protocol. In this case, the Protocol can be tcp, udp, tcpv6, or udpv6. If this parameter is used with -s to display statistics by protocol, Protocol can be tcp, udp, icmp, ip, tcpv6, udpv6, icmpv6, or ipv6.
-s : Displays statistics by protocol. By default, statistics are shown for the TCP, UDP, ICMP, and IP protocols. If the IPv6 protocol for Windows XP is installed, statistics are shown for the TCP over IPv6, UDP over IPv6, ICMPv6, and IPv6 protocols. The -p parameter can be used to specify a set of protocols.
-r : Displays the contents of the IP routing table. This is equivalent to the route print command.
Interval : Redisplays the selected information every Interval seconds. Press CTRL+C to stop the redisplay. If this parameter is omitted, netstat prints the selected information only once.
/? : Displays help at the command prompt.
Enjoy!!!!
Screenshot_19
with -b option:
Screenshot_20
using findstr ( same grep in Linux) to specific process:
Screenshot_21
using tasklisk to view more
Screenshot_22
kill it if you want:
Screenshot_23
^^ That’s all.

No Comments on See what process is using a TCP/UDP port in Windows Server 2008
Categories: Uncategorized

Progress knowledgebase offline June 13, 2014

Link to download Progress knowledgebase offline: ProKB.exe

https://drive.google.com/file/d/0B6hLGLphUlbfcVZOaXBpdXRyYlE/edit?usp=sharing

Hope to help you!!

Installation Guide:
Screenshot_12
Next
Screenshot_13
next
Screenshot_14
next
Screenshot_15
next
Screenshot_16
Run it C:\ProKB\ProKB.bat
Screenshot_17
Enjoy!!!

No Comments on Progress knowledgebase offline
Categories: Uncategorized

Cô ấy June 9, 2014

Cô ấy!

Có phải ở bên em,
Anh vẫn nghĩ nhiều về cô ấy?
Bởi vì em nhìn thấy…
Trong mắt anh, cô ấy thật tuyệt vời…

Cô ấy có mái tóc đen, trải dài quyến rũ
Đôi mắt sâu, khiến anh đã từng mất ngủ vì yêu
Nụ cười ấy trong anh hẳn phải rất kỳ diệu…
Để trái tim anh lạc điệu nhớ nhung nhiều

Cô ấy đã từng ở đây…
Bên anh mỗi ngày….những phút giây, hạnh phúc
Nồng nàn, yêu thương, trìu mến…
Cô ấy đã đi xa khi ngày em đến…

Nhưng hình bóng ấy, mãi quanh quẩn nơi này…
Hàng ngày, em dùng khăn tay xóa vết son môi ấy…
Nhưng lau hoài, sao nó vẫn ở đây?
Vết son môi phai màu trong trái tim anh ấy
Vẫn in hình khiến lòng em đau nhói…

Có những buồn vương em không thể nói…
Nước mắt lòng vòng, chảy trong những hờn ghen…
Cô ấy đi rồi, em vẫn cứ nhỏ nhen…
Bởi vì em biết trong anh nỗi nhớ vẫn trào lên mạnh mẽ…

Rồi mai này, anh sẽ trở lại với người anh yêu
Em ở lại nơi này với rất nhiều nỗi nhớ…
Chẳng trái tim nào lang thang vô chủ…
Chỉ có những đêm dài không ngủ, sợ mất anh 🙂

Tháng năm quẩn quanh…
Anh ở bên em, mỗi ngày trôi nhanh, buồn chán…
Thương anh, em chẳng dám thở than…
Thương mình… em hoang mang trong tuyệt vọng 🙂

– Gào

http://vuphuongthanh.wordpress.com/2012/05/28/tho-gao-co-ay/

No Comments on Cô ấy
Categories: Uncategorized

Some words per … June 2, 2014

Some words per day!!!

 

  • make up: make up your homework

make up one’s mind = decide

It’s a big decision, so take your time to make up your mind.

  • work out: be successful

I hope TIV project work out fine.
try somethings out: test
I promise I’ll try report out

  • wear off: fade away

It was rain so most of my make-up wore off

No Comments on Some words per …
Categories: Uncategorized

Một mai giã từ… May 30, 2014

https://www.youtube.com/watch?v=32AgDCj0zjs

No Comments on Một mai giã từ…
Categories: Uncategorized

How to set up a printer in MFG/PRO

goal: How to set up a printer in MFG/PRO
fact: MFG/PRO All Versions
fact: UNIX
fact: Printers
fix: MFG/PRO, like most other applications with reporting capabilities, allows you to send reports, files, and browses to a variety of output devices and printers either locally, or accessed via a network. There are several steps to configuring a printer within the MFG/PRO system.
Generally speaking, the printer is defined through menu option 36.13.2 Printer Setup Maintenance (mgmgmt05.p). However, part of the configuration required is to specify the printer type. This Printer Type Maintenance is performed through menu option 36.13.1 (mgmgmt04.p).
The standard MFG/PRO system has several default printer types, and logical terminal devices, pre-defined. You must check to verify if your physical printer type is defined here. For example, is there an entry for an HP Laser printer, or an Epson printer, if you are using one of these types of printers? Furthermore, if your printer is not listed here, and if the printer will not emulate one of these pre-defined types, you will need to define your printer type manually. This consists of specifying a series of printer programming, or control, characters that will control the characteristics and behavior for each of several printing situations. The situations include control of:
1) 80 character print jobs
2) 132 character print jobs
3) Bar code print jobs
4) Hardware initialize and reset
Through proper utilization of these control characters, printers can be instructed to modify the printer pitch and font, print landscape/portrait style, produce multiple copies, perform line/form feeds, print banner pages, and possibly many other options depending on the physical printer model. The printer’s manual is the best source for control codes and their purposes.
Once you have defined or located the proper printer type definition in 36.13.1 Printer Type Maintenance, you can configure a printer for use with MFG/PRO. For this, you must use menu option 36.13.2 Printer Setup Maintenance. Here is a definition of each Printer Setup Maintenance field:
OutPut To: Here you will specify the printer’s name as it will be known within MFG/PRO. This name should have some meaningful name that gives some intuitive information about that printer, such as “H/RLaser”.
Printer Type: Here you can select any printer type, as defined previously on through menu 36.13.1 Printer Type Maintenance. Note that as you select the type, the defined control code sequences for that default printer type are automatically applied to this printer. You could specifically alter these codes on this screen for this individual printer if you wished this particular printer to behave differently than the standard printer of its type.
Description: Printer description field.
Lines / Page: The number of lines the printer will print per page.
Max Pages: You may select a maximum number of pages that any print job can generate. A setting of “0” indicates that no limit is set.
Scroll Output: This field will only be set to “Yes” if you are attempting to define a Terminal Output Display that allows use of the arrow keys to scroll the displayed text on the screen. Definition of this type of terminal output device will be discussed later.
Device Pathname: This field will specify a technical sy. stem name, such as a printer share name, or some other syntax that directs the print jobs to the physical printer device on the network. The behavior of this field is different for different Operating systems. On Windows systems this field will specify the share name of a printer, or the word “printer” to select the Windows Captured Default Printer. On a Unix system, for example, this field could contain an actual O/S command that causes a printing action. Indicates whether the Device Pathname specifies a technical system printer name, or a command to be passed to the O/S. When set to “Yes” the command on the Device Pathname is passed directly to the O/S. On Windows systems, this is set to “No”.
Some Examples of Device Pathname Entries:
Device Pathname Entry O/S Effect
//arnt01/supjet1 Windows Prints to a network printer shared as supjet1 off the arnt01 print server.
printer Windows Prints to the Windows Captured default Printer
lp -d supjet1 Unix Passes the unix LP command to the O/S to cause printing at the destination supjet1.
Spooler: SPOOLER FIELD MUST BE “YES” for UNIX systems and No for Windows systems.
Initialize Command: Operating system command necessary to initialize the printer, if necessary. Not required if handled by control codes in any of the control code fields.
Initialize Ctrl: String of control characters to initialize the printer, if necessary. May instead be contained in the 80 or 132 column control code fields. These control characters can be found in the printer’s instruction manual.
80 Column Start: Control codes for the specific printer type and model necessary to initialize the printer for 80 column output and specify characteristics such as font type and size, etc. These control characters can be found in the printer’s instruction manual.
132 Column Start: Control codes for the specific printer type and model necessary to initialize the printer for 132 column output and specify characteristics such as font type and size, etc. These control characters can be found in the printer’s instruction manual.
Reset Ctrl: String of control characters to reset the printer to its original state. May instead be contained in the 80 or 132 column control code fields. T. hese control characters can be found in the printer’s instruction manual.
Reset Command: Operating system command to execute after printing completes, if any such command is necessary.

3 Comments on How to set up a printer in MFG/PRO
Categories: Uncategorized

Python book May 24, 2014

Programming tutorial
https://drive.google.com/file/d/0B6hLGLphUlbfLVNRejh4WFRJQ2s/edit?usp=sharing

PythonNetBinder
https://drive.google.com/file/d/0B6hLGLphUlbfVzJtMVZPZklES00/edit?usp=sharing

Python Cookbook :https://drive.google.com/file/d/0B6hLGLphUlbfVFRMaEpfTHoyOVU/edit?usp=sharing

Foundations_of_Python_Network_Programming_Second_Edition: https://drive.google.com/file/d/0B6hLGLphUlbfbXBERkpMR2ZudDg/edit?usp=sharing

No Comments on Python book
Categories: Uncategorized