Changeset 784
- Timestamp:
- Aug 8, 2013, 9:56:12 AM (12 years ago)
- Location:
- trunk/guitools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r769 r784 3 3 VRX: wps_open.VRX 4 4 VXOFile: VROBJEX 5 VXOFile: VRSPLIT 5 ClassFile: VRSPLITB.DLL 6 6 MacroPath: VRM:U:\Develop\Samba\trunk\guitools\evfsgui 7 7 EXEPath: … … 11 11 VRXWindow: __VREFileListWindow,1,2192,7950,2665,3358 12 12 VRXWindow: __VRESectionListWindow,1,1156,12382,12238,6914 13 VRXWindow: __VREToolsWindow,0,3096,8528, 6486,166913 VRXWindow: __VREToolsWindow,0,3096,8528,5474,1669 14 14 VRXWindow: __VREWindListWindow,1,723,8239,4963,3150 15 15 UserFile: 1 -
trunk/guitools/evfsgui/evfsgui.vrx
r769 r784 1135 1135 _LoadOtherFuncs: 1136 1136 IF options.!debug == 1 then say time()' _LoadotherFuncs() started' 1137 SIGNAL ON SYNTAX NAME DLLMissing1137 SIGNAL ON SYNTAX 1138 1138 1139 1139 call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' … … 1153 1153 return 1154 1154 1155 DLLMissing:1155 SYNTAX: 1156 1156 Fatal = 1 1157 call VRMessage 'Main', 'REXX function library 'strip(translate(word(sourceline(SIGL-1),4),' ',"',"))'.DLL is missing!', "EVFSGUI fatal error", "E" 1157 xxx = strip(translate(word(sourceline(SIGL-1),4),' ',"',")) 1158 call VRMessage 'Main', 'REXX function library 'xxx'.DLL is missing!', "EVFSGUI fatal error", "E" 1158 1159 signal Quit 1159 1160 … … 1635 1636 credentials.!password = VRGet("EF_PASSWORD","Value") 1636 1637 1637 if pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 1 1638 if pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 1 | pos(left(credentials.!password,1),'01234567890') > 0 1638 1639 then UserCred = '--user='Credentials.!username'%%'Credentials.!password 1639 1640 else UserCred = '--user='Credentials.!username'%'Credentials.!password -
trunk/guitools/shared/smbtree.vrs
r769 r784 15 15 samba.!serverlist = TempDir'smbtree.srvlst' 16 16 17 /* smbtree -S = List workgroups (domains) and servers of tree */ 17 /* smbtree -b = Use broadcast instead of using the master browser 18 smbtree -D = List only domains (workgroups) of tree 19 smbtree -S = List domains(workgroups) and servers of */ 18 20 say ' detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.!serverlist 19 21 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.!serverlist … … 118 120 say ' Possible workgroup: "'smbtreeline.sl'"' 119 121 /* check for eventual error messages */ 120 if pos("RECEIVING",translate(smbtreeline.sl)) > 0 | pos(" TDB(",translate(smbtreeline.sl)) > 0 then do122 if pos("RECEIVING",translate(smbtreeline.sl)) > 0 | pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then do 121 123 Msg.Type = "W" 122 124 Msg.Text = smbtreeline.sl … … 168 170 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' | UserCred = '--user=%%' then UserCred = '-N' 169 171 172 /* We have to remove the double % for smbclient.exe - not entirely clear why */ 173 OldUserCred = "" 174 if pos('%%',UserCred) > 0 & pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 0 then do 175 OldUserCred = UserCred 176 parse var UserCred '--user='username'%%'password 177 UserCred = '--user='username'%'password 178 say " Strip double %%!!!" 179 end 180 170 181 say ' detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 171 172 182 address cmd 'detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 173 183 … … 176 186 parse var UserCred '--user='username'%'. 177 187 ok = VRSet("CN_SMBTREE","Caption","User context: "username) 188 end 189 190 if OldUserCred <> "" then do 191 UserCred = OldUserCred 192 OldUserCred = "" 193 say " Restore double %%!!!" 178 194 end 179 195 … … 420 436 421 437 call VRSet VRWindow(), 'Pointer', 'Wait' 422 say ' detach 'samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 423 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -D 'debuglevel' 'UserCred' >'samba.!msg 438 439 /* smbtree -b = Use broadcast instead of using the master browser 440 smbtree -D = List only domains (workgroups) of tree 441 smbtree -S = List domains(workgroups) and servers of */ 442 say ' detach 'samba.!smbtreeexe' 'BroadCast' -D 'UserCred' 'debuglevel' >'samba.!msg 443 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -D 'UserCred' 'debuglevel' >'samba.!msg 424 444 425 445 if VRIsValidObject("DT_STATUSBAR") then ok = VRSet("DT_STATUSBAR","Caption","Enumerating workgroups") … … 598 618 stemcount = stemcount + 1 599 619 inline = linein(msgfile) 600 if pos('creating lame',inline) > 0 then do620 if pos('creating lame',inline) > 0 | pos('tdb(',inline) > 0 then do 601 621 stemcount = stemcount - 1 602 622 iterate … … 608 628 interpret dyn 609 629 ok = stream(msgfile,'c','close') 610 if delMsgFile <> "NODEL" then ok = SysFileDelete(msgfile) 630 /* if delMsgFile <> "NODEL" then ok = SysFileDelete(msgfile) */ 631 611 632 drop msgfile msgstem 612 633 say time()' file2stem() done' -
trunk/guitools/smbmon/smbmon.vrp
r770 r784 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,4083,11226,7372,6589 10 VRXWindow: __VREToolsWindow,1,2156,1494, 6489,165910 VRXWindow: __VREToolsWindow,1,2156,1494,4968,1665 11 11 VRXWindow: __VREWindListWindow,1,964,11708,3132,3150 12 12 UserFile: 1 -
trunk/guitools/smbmon/smbmon.vrx
r770 r784 1253 1253 1254 1254 call _RefreshDaemonsDelay 1255 1256 1255 DRH = VRInfo("Record") 1256 DaemonName = "" 1257 1257 1258 OH = VRInfo("Object") 1258 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 0 ) 1259 ok = VRset("ContextMenu_Daemons_Ping","Visible", (DRH <> "") ) 1260 ok = VRset("ContextMenu_Daemons_Shutdown","Visible", 0 ) 1261 DaemonName = "" 1262 if DRH <> "" then DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1259 ok = VRset("ContextMenu_Daemons_Details", "Visible", 1 ) 1260 ok = VRset("ContextMenu_Daemons_Tree", "Visible", 1 ) 1261 ok = VRset("MItem_9", "Visible", 1 ) 1262 ok = VRset("ContextMenu_Daemons_Sort", "Visible", 1 ) 1263 ok = VRset("ContextMenu_Daemons_MiniIcons", "Visible", 1 ) 1264 ok = VRset("MItem_13", "Visible", 1 ) 1265 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 ) 1266 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 ) 1267 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1268 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 1 ) 1269 1270 if DRH <> "" then do 1271 DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1272 ok = VRset("ContextMenu_Daemons_Ping","Visible", 1 ) 1273 end 1274 1263 1275 select 1264 when Words(DaemonName) = 3 then do /* a child process with PID in name */1276 when Words(DaemonName) = 3 & pos("PID ",DaemonName) > 0 then do /* a child process with PID in name */ 1265 1277 DaemonName = word(DaemonName,2) 1266 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 1 )1267 1278 ok = VRSet("ContextMenu_Daemons_KillPID", "Caption", NLVGetMessage( 38, DaemonName)) 1268 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 )1269 1279 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1270 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 )1271 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 )1272 1280 end 1273 when Words(DaemonName) = 1 then do /* on smbd.exe or nmbd.exe root processes */1281 when Words(DaemonName) = 1 & (pos("mbd.exe",Daemonname) > 0 | pos("winbindd.exe",Daemonname) > 0) then do /* on root process */ 1274 1282 parse var DaemonName DaemonName'.exe' 1275 1283 if strip(VRMethod("CN_Daemons", "GetFieldData", DRH, DPidsFH)) <> "" then do 1276 ok = VRSet("ContextMenu_Daemons_Shutdown", "Caption", NLVGetMessage( 33, DaemonName)) 1277 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 1 ) 1278 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1279 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1280 end 1281 else do 1282 ok = VRSet("ContextMenu_Daemons_Start", "Caption", NLVGetMessage( 36, DaemonName)) 1283 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1284 ok = VRset("ContextMenu_Daemons_KillPID","Visible", 0 ) 1285 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1286 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1284 ok = VRSet("ContextMenu_Daemons_Shutdown", "Caption", NLVGetMessage( 33, DaemonName)) 1285 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1286 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1287 1287 end 1288 1288 end 1289 otherwise nop 1289 when pos("\", DaemonName) > 0 then do /* we are on a file */ 1290 ok = VRset("MItem_13", "Visible", 0 ) 1291 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1292 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1293 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1294 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 0 ) 1295 end 1296 otherwise do /* we are on a user */ 1297 ok = VRset("MItem_13", "Visible", 0 ) 1298 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1299 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1300 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1301 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 0 ) 1302 end 1290 1303 end 1291 1304 say ' Daemon is "'DaemonName'"'
Note:
See TracChangeset
for help on using the changeset viewer.