ya seems so, can anybody move this thread there ?? admins?
thanks
ya seems so, can anybody move this thread there ?? admins?
thanks
@CaperJack, but my computer is in my homegroup. Why I can't access my computer itself.
I Tried doing what you said and it says problem is network related and it wanted me to troubleshoot that first. When i tried that, it says computer clock in not in sync with standard local time (the trouble shooter is wrong here)
I think some network related service is disabled. If anybody can think in that direction ???
Hi LJ, I tried and it doesn't help.
You haven't created or joined a homegroup.
I am in the homegroup, other person can access my laptop
You're not using a homegroup, and the folder or printer you're trying to access has not been shared
drives on both computer are shared]
Network discovery is turned off
lolz
Password-protected sharing is turned on
again lolz
The computers aren't in the same workgroup
then how can he access mine? not sure how to check this
You don't have permission to access the file or folder you're trying to access
yes, i dont even have permission to access my own computer, see the screenshot
Group Policy might be blocking the connection
Don't know about this. why would it block one computer and not other
Your computer doesn't have the latest updates for your router
Not sure what that means
Hi Bal, I created another admin account but I get the same message.
Hi Jingda, yes that is the problem.
I have 2 laptops A and B, both running windows 7.
I can access A from B, but can't access B from A. Strange thing is, if I go through network, I cant even access A from A.
This is the error message that I get.
A (or B) is not accessible. You might not have permission to use this network resource.
Contract the administrator....
The specified network provider name is invalid.
Also attached a screenshot.
Hi
I am trying to compress a file. But I want my original file to be there.
eg. if I have file named file1
then after compressing I should have 2 files:
file1
file1.z
(I googled and tried gzip and zcat but couldn't do it)
Thanks
just write the subroutine with arguements
sub importData()
fileName = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please selec text file (in .csv format)...")
If fileName = "False" Then Exit Sub 'User pressed Cancel on the open file dialog
'Calling the subroutine now:
call ImportTextFile(stringName, SepSymbol)
End Sub
Yeah it was and I was trying to find it under program files.
Lack of knowledge with intention of doing a search on the minimal data (only program files, not whole C drive) took so much time of ours. But good in a way that I got to learn things that I did not think of. Thanks to you and other who posted
thanks ddanbe... That helped me in creating a batch file to compile my programs. Actually I found csc.exe in the following folder
C:\Windows\Microsoft.NET\Framework\v2.0.50727
(version number can vary from system to system)
Thanks you. Wish I could help but I don't know anything about "searching on data of a website"
Thanks Mitja, Actually I am trying to compile .cs files (and not .csproj files or solutions). Sorry for not mentioning that in the very first post.
thanks guys... (and gals :P). Actually I mistyped...Should have typed "how to search in a particular forum"!!! well thanks anyways as your replies answers my question. Just one thing that I never had problem in finding that thing earlier. This clicking on blank search box is not so intuitive, atleast to me.
Hi
I am back at Daniweb after a long long time. Reason for posting here is that I recollect vaguely that earlier I had an option to search under a particular thread. Needless to say that would reduce my search results by a lot. Now I cant seem to find that option. I am feeling little dumber over my inability to find that option.
Hi
I have just started C# (again) and written a small program. I have installed Microsoft Visual C# 2008 Express Edition. Now I want to compile and run my program but "start debugging (F5)" option is faded. Also I can't find any csc.exe file in the main directory where Visual C# 2008 is installed. Please help!
Thanks
Hi again...
While writing the above thread.... one thing came to my mind... may be I have virus on my computer (Desktop) as I did not have any other antivirus other than claimwin for last 6 months or so. No internet security software as well.
So i tried to go to kaspersky website and ... i could not open it. Bit defender... same thing.... mcafee same thing... pc celin same thing... I could not open any antivirus websites. Even microsoft website I could not open. So i had some doubt that i had virus. I tried opening these sites from my laptop and there they were opening without any problem (same modem). I checked DNS settings on my computer and laptop, they were different. I changed the dns settings of my computer but that did not help. I was sure there is virus but I was still in dark about whether this virus cause the hang problem or it was something else.
So I checked my hosts.txt file but it was OK. I knew the virus is beyond my scope of knowledge which is actually very less about computers and everything.
I downloaded kaspersky trial version using torrents, but then I couldn't activate even the trial version itself. (Ofcourse anything related to kaspersky was blocked). Then i tried ping, tracert etc for kaspersky.com but they could not resolve the name. Then I asked for IP address of kaspersky from a friend and bang !!! …
Status: Deleted (events: 9)
12/23/2009 11:25:25 PM Deleted virus Net-Worm.Win32.Kido.ih c:\WINDOWS\system32\vencfsax.dll High
12/23/2009 11:25:25 PM Deleted virus Net-Worm.Win32.Kido.ih c:\WINDOWS\system32\vencfsax.dll//PE_Patch.UPX High
12/23/2009 11:25:25 PM Deleted virus Net-Worm.Win32.Kido.ih c:\WINDOWS\system32\vencfsax.dll//PE_Patch.UPX//UPX High
12/23/2009 11:30:25 PM Deleted virus Net-Worm.Win32.Kido.ih C:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210067.dll High
12/23/2009 11:30:25 PM Deleted virus Net-Worm.Win32.Kido.ih C:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210067.dll//PE_Patch.UPX High
12/23/2009 11:30:25 PM Deleted virus Net-Worm.Win32.Kido.ih C:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210067.dll//PE_Patch.UPX//UPX High
12/23/2009 11:37:09 PM Deleted Trojan program Trojan-GameThief.Win32.OnLineGames.wec D:\System Volume Information\_restore{1A550279-2A91-4C74-A25A-23BB6ADCA4E1}\RP138\A0039224.inf High
12/23/2009 11:41:55 PM Deleted Trojan program Trojan-GameThief.Win32.OnLineGames.wec E:\System Volume Information\_restore{1A550279-2A91-4C74-A25A-23BB6ADCA4E1}\RP138\A0039226.inf High
12/23/2009 11:45:30 PM Deleted Trojan program Trojan-GameThief.Win32.OnLineGames.wec F:\System Volume Information\_restore{1A550279-2A91-4C74-A25A-23BB6ADCA4E1}\RP138\A0039228.inf High
Status: Disinfected (events: 94)
12/24/2009 2:25:47 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Setup.exe High
12/24/2009 2:25:56 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\hkcmd.exe High
12/24/2009 2:26:07 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\igfxcfg.exe High
12/24/2009 2:26:15 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\igfxdiag.exe High
12/24/2009 2:26:19 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\igfxext.exe High
12/24/2009 2:26:31 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\igfxtray.exe High
12/24/2009 2:26:33 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\Graphics\Win2000\igfxzoom.exe High
12/24/2009 2:26:37 AM Disinfected virus Virus.Win32.Tenga.a D:\drivers new (gigabyte)\video driver update\INFUpdate\infinst_autol.exe High
12/24/2009 2:26:43 AM Disinfected virus Virus.Win32.Tenga.a D:\installers in D\proxifierv1.21crackheritage\Proxifier.exe High
12/24/2009 2:29:47 AM Disinfected virus Virus.Win32.Tenga.a D:\installers in D\Tally 9.2.1\install.exe High
12/24/2009 2:29:49 AM Disinfected virus Virus.Win32.Tenga.a D:\installers in D\Tally 9.2.1\tally72lic9xserver.exe High
12/24/2009 2:29:52 AM Disinfected virus Virus.Win32.Tenga.a D:\installers in D\Tally 9.2.1\tally72licserver.exe High
12/24/2009 2:30:48 AM Disinfected virus Virus.Win32.Tenga.a D:\installers in D\Tally 9.2.1\tally72migration.exe High
12/24/2009 2:30:59 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\Cleanup.exe High
12/24/2009 2:31:01 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\CmdAgent.exe High
12/24/2009 2:31:05 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\FramePkg.exe High
12/24/2009 2:36:01 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\FrameworkPackage.exe High
12/24/2009 2:36:06 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\FrameworkService.exe High
12/24/2009 2:36:11 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\FrmInst.exe High
12/24/2009 2:36:16 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\McScanCheck.exe High
12/24/2009 2:36:21 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\McScript.Exe High
12/24/2009 2:36:23 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\McTray.exe High
12/24/2009 2:36:30 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\naPrdMgr.exe High
12/24/2009 2:36:34 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\naPrdMgr64.exe High
12/24/2009 2:36:42 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\UdaterUI.exe High
12/24/2009 2:36:45 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\agent\WStub32.Exe High
12/24/2009 2:36:49 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\Mcafee Virusscan 8.5\ePOPolicyMigration.exe High
12/24/2009 2:37:00 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\Mcafee Virusscan 8.5\Setup.exe High
12/24/2009 2:37:04 AM Disinfected virus Virus.Win32.Tenga.a D:\Macfee\Mcafee Virusscan 8.5\FramePackage\FramePkg.exe High
12/24/2009 3:08:57 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210071.exe High
12/24/2009 3:08:58 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210072.exe High
12/24/2009 3:08:59 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210073.exe High
12/24/2009 3:09:01 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210074.exe High
12/24/2009 3:09:00 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210075.exe High
12/24/2009 3:09:02 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210076.exe High
12/24/2009 3:09:02 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210077.exe High
12/24/2009 3:09:04 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210078.exe High
12/24/2009 3:09:05 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210079.exe High
12/24/2009 3:09:07 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210080.exe High
12/24/2009 3:09:05 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210081.exe High
12/24/2009 3:09:08 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210082.exe High
12/24/2009 3:09:10 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210084.exe High
12/24/2009 3:09:11 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210085.exe High
12/24/2009 3:09:13 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210086.exe High
12/24/2009 3:09:14 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210087.exe High
12/24/2009 3:09:17 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210088.exe High
12/24/2009 3:09:19 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210089.exe High
12/24/2009 3:09:21 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210090.exe High
12/24/2009 3:09:24 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210091.Exe High
12/24/2009 3:09:26 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210092.exe High
12/24/2009 3:09:42 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210083.exe High
12/24/2009 3:09:43 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210093.exe High
12/24/2009 3:09:47 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210094.exe High
12/24/2009 3:09:51 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210095.exe High
12/24/2009 3:09:55 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210096.Exe High
12/24/2009 3:10:00 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210097.exe High
12/24/2009 3:10:02 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210098.exe High
12/24/2009 3:10:04 AM Disinfected virus Virus.Win32.Tenga.a D:\System Volume Information\_restore{3E717BE4-5549-4143-99C6-1F04FD3F2314}\RP159\A0210099.exe High
12/24/2009 3:11:37 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\AUTOCHK.EXE High
12/24/2009 3:11:42 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\AUTOFMT.EXE High
12/24/2009 3:14:57 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\EXPAND.EXE High
12/24/2009 3:14:58 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\FAXPATCH.EXE High
12/24/2009 3:18:49 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\NETSETUP.EXE High
12/24/2009 3:19:02 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\NTSD.EXE High
12/24/2009 3:19:53 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\REGEDIT.EXE High
12/24/2009 3:20:39 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\SPNPINST.EXE High
12/24/2009 3:21:00 AM Disinfected virus Virus.Win32.Tenga.a D:\WINXP\I386\SYSPARSE.EXE High
12/24/2009 3:21:05 AM D
Hi
I am having this problems since around 5-6 days. My computer gets hang, mouse pointer gets lost (invisible), and key strokes work after a lag of 1 sec to 3-4 secs. After a few seconds (say from 3 secs to 10-12 secs), it will automatically get to normal state, like nothing weird has ever happened.
This mostly happens when I am playing AOE II, (Age of Empires TC, a game released in 2000 does not need much resources of computer, runs on 128 RAM). Then this also happens (with lesser frequency) while I use Google Chrome or Firefox. (I seldom use IE).
Also sometimes keyboard will work and I can see mouse pointer but cant move mouse pointer. This has happened only 3 times, and everytime i needed restart to fix it. (the problem above this has occured like atleast 30-40 times)
I downloaded and tried to fix it with CCleaner, though it freed up some space, but did not help me in getting rid of the problem.
Following are the config and settings of my computer.
windows xp pro, version 2002, SP2
computer: Intel P4, 2.40 GHz, 512 MB RAM, Gigabyte mother board, intel chipset 845.
pretty old but this is what I have.
I have uninstalled my antivirus -claimwin or something- 2 days ago, which anyways did not seem to do any work, in attempt to free up the load. So I have no antivirus installed as of …
When you use VPN simulators like Hamachi and Tunngle, mostly you just need to put aoe (age2x_1.exe) as an exception in your firewall. (Also the simulator as well).
But if you want to use clients like Voobly (previously IGZones), Game park etc., most of the time you will need to configure your router settings. Best way is to know how to change your router settings using googling. For non-techi person, it might be a little confusing in the beginning but if you try 2-3 times, you should be able to get it done.
PS: You can read my other posts as well, hope they help...
Thanks Scott!
you have boosted my confidence and increased my knowledge and may be saved our company a lot of money. Depends upon how I can convince management about these things. Disconnecting VPN will come in handy as an extra measure
Thank you very much!
They want to setup a VPN, and then transfer the data over sftp. First I thought these how these two different protocols can go together, but then I got to know from somewhere a VPN can implement sftp to transfer the data, providing double security. Is that correct ?
After we get the data, only 3-4 members will be allowed to use (read/edit) that data. Is is possible that admin creates a folder for that and give access to only selected people to it? ( I mean thats possible, they already do it on our LAN, but I don't know how insecure is that). And if server is hacked, is it same whether data was pulled by us or pushed by the bank?
After we do the analysis, data will be deleted, and we will send them the final reports through emails. (Bank will not pull back the data or anything from our server)
Hi
I tried creating sftp server using OpenSSH and I get some errors.
First I tried on Microsoft Windows Server 2003, R2, SP1 and then on Windows XP Professional, SP2 and the error is same.
Installation went smoothly on both the OS (after a few complications, see note at bottom), but when I tried to start the service, I get the following error:
Could not start the OpenSSH server service on local computer.
Error 193: 0xc1.
Here is the log of error from EventViewer (System)
The OpenSSH Server service failed to start due to the following error:
OpenSSH Server is not a valid Win32 application.
I followed the procedure as given on the following websites:
http://www.digitalmediaminute.com/article/1487/setting-up-a-sftp-server-on-windows
http://www.xenocafe.com/tutorials/windows/openssh_sftp_server/index.php
Note:If you try creating the server by yourself you might face complications while editing the passwd and group file:
Instead of following:
mkgroup –l >> ..etc/group
mkpasswd –l –u username >> ..etc/passwd
you could use:
mkgroup –l >> "C\:Program Files\OpenSSH\etc\group"
mkpasswd –l –u username >> "C\:Program Files\OpenSSH\etc\passwd"
I guess you can use both backward and forward slash.
Thanks sknake,
That helps and I have some more info, so I was wondering if it can give you better understanding of the situation and guide me.
We have servers sitting in our company premises in a secured server room. We do not use it to publish websites but to keep data of various companies over which different teams (in the company itself) do analytics and other stuff. Earlier we use to pull data either through offline transfer (like hard disk/DVD), or by pulling the data from the server of other company (using vpn or sftp). Now there is a bank which wont give us access to there server. They say they want to "push" the data to our company's server, instead of allowing us to "pull" the data from there server.
On that IT guys say, the place (server) where data will come is unsecure. They say, if we pull, then its ok, but if they push, then their data become unsecure as our server is a public server. (Which I don't think is, after reading your post).
One thing that is commonly said by him and you is that "if someone breaks in to IIS and gets administrative access to the server they could get at all of the websites". But as you mentioned its also possible in case of private server as well. I guess strong passwords and policies like regularly changing passwords can lower probability of this happening... right ?
Thanks …
Hi
What are these terms? What is the difference?
I am kind of new to servers but I understand what is a server, client, and transfer protocols like ftp, sftp, vpn etc. I have also created server using filezilla and transferred files using it, and I unsuccessfully tried creating sftp server using OpenSSH. (After doing all the stuff I got an error says, openSSH.exe is not valid windows executable.... something like that, I took help from here http://www.digitalmediaminute.com/article/1487/setting-up-a-sftp-server-on-windows, but that is a different issue I will create another thread for that, mentioned it just to give a background).
That being said, my company's IT guys is bothering our analytics team over these terms. They are saying our server is not secure, and they need some 5000 USD to buy and some monthly charges to maintain the same. (They say our existing server is a public server, I don't know what does that mean). I tried googeling but couldn't find a satisfying answer.
So please help me here.
Well nice to see that this code helped you.
And thanks for correcting the mistake.
Well I did not know about the semicolons, but excel does play with the quotes in the csv file. Interesting to note that it also plays with semi-colons.
actually u don't need that... u can see your hamachi ip at the top of hamachi window. Also whoever creates the game, should give all others his (hamachi) IP and the network he is into, and if others are present in the same network, they can join his game by entering his IP at aoe screen.
Some times you might find some1 cant join you even if he is in same hamachi network. that means he is still not connected to you. to confirm that right click on his nick and ping. if it doesnt ping then both/one of you should restart hamachi. if it pings then its your computer firewall problem.
ok.... that helps..
thanks again.
thanks...
Now I understand how it works on shell prompt.
I will try to find out if this works when written in a script.
edit: it works in scripts also...
thanks again.
thanks...
other than error handling there is only one line... chmod u+x $1
and that's how we learn... I spent more than 1 hour on this....
Thank you very much...
but i still want to know: how to concatenate two strings to make a command and then how to execute that command. Or do we need to always find a workaround.
Hi
I am new to unix and want to learn shell scripting.
Right now I am use cygwin for windows but sooner I will switch to ubantu.
So when I wrote my first script (just copied from the book I was reading), I came to know I have to give execute permission to the script file.
So now I want to create a script which will take the file as input and will just change the permissions such that It wont effect read/write permission but only grant the execute permissions.
So I tried to write something like this (code mixed with psuedocode is written below)
#GrantExPer
#Usage: GrantExPer <filename>
str1='ls -la ' #first string
str2=$1 # second string contains file name
echo $str2 # this works
comm1=$str1 $str2 #command1 by concatenating string 1 and string 2, this doesn't work for me
$comm1 #execute command1
var1=$1 #get output of the above command in some var1
#find out current permissions using var1 and calculate some integer $newPermission (which contains new permissions)
chmod $newPermission $str2 #str2 still contains file name I think
Please guide me for:
1. How to make a right command. I tried it by concatenate 2 strings. (line 4-7)
2. Then how to execute it. (line 8)
3. Is there any command which shows me file permissions in a number format like 644 rather than -rw-r--r--. To me number format seems easier to manipulate.
Thanks
Hi guys...
I actually got this already working. I just did not know how TimerObject_tick() function works. Now I know it constantly update itself (which is still funny and a little vague for me) after the interval we set.