First, use this to decode the transaction:
getrawtransaction <txid> true
Then extract from this JSON the hexadecimal string after the space in the asm field of the scriptSig of the input in vin whose signature you are interested in knowing (probably there is only one input so the first).
Finally, pass this string (which is a hexadecimal public key) to validateaddress to get the corresponding address.